/* Reset e variáveis */
:root {
    --primary-color: #dc3545;
    --secondary-color: #000000;
    --accent-color: #ffffff;
    --background-color: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Menu */
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Banner */
.banner {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x1080/000000/dc3545?text=FMINFO') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--accent-color);
    margin-top: 70px;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: #c82333;
}

/* Seções */
.sobre, .servicos, .contato {
    padding: 8rem 0 5rem 0;
}

/* Force padding on all sections */
section {
    padding-top: 6rem !important;
    padding-bottom: 5rem !important;
}

#banner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.sobre {
    background-color: var(--background-color);
}

.servicos {
    background-color: var(--accent-color);
}

.contato {
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Serviços */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.servico-item {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Contato */
.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contato-info h3, .contato-form h3 {
    margin-bottom: 1rem;
}

.contato-form input, .contato-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 1rem 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .menu {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }

    .contato-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 1.5rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Custom Styles para Bootstrap */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%),
                url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Parallax Section */
.parallax-section {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

/* Parallax Section Why - Higher Opacity */
.parallax-section-why {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.parallax-overlay-why {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.75) 100%);
    backdrop-filter: blur(2px);
}

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    transition: transform 0.3s ease;
}

.hover-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.stat-number {
    transition: all 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
    color: var(--primary-color) !important;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Service Detail Styling */
.service-detail {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.service-detail h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.service-detail img {
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-detail ul li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.service-detail button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b02a37 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.service-detail button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    background: linear-gradient(135deg, #b02a37 0%, var(--primary-color) 100%);
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    background-attachment: fixed;
    opacity: 0.1;
}

/* Loading Animation */
body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

body:not(.loaded) {
    opacity: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b02a37;
}

/* Responsive adjustments for parallax */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }

    .hero-section {
        background-attachment: scroll;
    }
}

/* Additional animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #b02a37);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Background gradients for sections */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
    color: var(--white);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-gradient-accent {
    background: var(--gradient-accent) !important;
}

.bg-gradient-dark {
    background: var(--gradient-dark) !important;
}

/* Enhanced navbar styles */
.navbar {
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.9) 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Full screen mobile menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.95) 100%);
        backdrop-filter: blur(20px);
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
        text-align: center;
        margin: 0;
        padding: 2rem 0;
    }

    .navbar-nav .nav-item {
        margin: 1rem 0;
    }

    .navbar-nav .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--white) !important;
        padding: 1rem 2rem;
        margin: 0.5rem 0;
        border-radius: 10px;
        transition: all 0.3s ease;
        position: relative;
    }

    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
        transition: width 0.3s ease;
        border-radius: 10px;
        z-index: -1;
    }

    .navbar-nav .nav-link:hover::before {
        width: 100%;
    }

    .navbar-nav .nav-link:hover {
        color: var(--white) !important;
        transform: scale(1.05);
    }

    .navbar-toggler {
        border: none;
        background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
        border-radius: 5px;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Enhanced card styles */
.stat-card {
    background: var(--white) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Enhanced buttons */
.btn-danger {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b02a37 100%) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b02a37 0%, var(--primary-color) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-outline-light {
    border-color: var(--white) !important;
    color: var(--white) !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid rgba(220, 53, 69, 0.1);
    border-radius: 15px 15px 0 0;
}

.modal-body {
    padding: 2rem;
}

.process-step {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Benefit items */
.benefit-item {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: linear-gradient(135deg, var(--light-gray) 0%, rgba(220, 53, 69, 0.05) 100%);
    transform: translateX(5px);
}

/* Network types */
.network-type {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.network-type:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced button styles */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Icon enhancements */
.fas, .fab {
    transition: all 0.3s ease;
}

.fas:hover, .fab:hover {
    transform: scale(1.1);
    color: var(--primary-color) !important;
}

/* Tech background for Sobre section */
.bg-tech-sobre {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.bg-tech-sobre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(220, 53, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(56, 139, 253, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(163, 113, 247, 0.05) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

.bg-tech-sobre::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, transparent 49%, rgba(220, 53, 69, 0.1) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(56, 139, 253, 0.1) 50%, transparent 51%);
    background-size: 60px 60px;
    animation: slideGrid 15s linear infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes slideGrid {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-60px, -60px);
    }
}

/* Animated geometric shapes */
.bg-tech-sobre .shape {
    position: absolute;
    border: 2px solid rgba(220, 53, 69, 0.3);
    animation: rotateShape 20s linear infinite;
    z-index: 1;
}

.bg-tech-sobre .shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 15%;
    border-radius: 50%;
    animation-delay: 0s;
}

.bg-tech-sobre .shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 25%;
    right: 20%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 5s;
}

.bg-tech-sobre .shape:nth-child(3) {
    width: 100px;
    height: 40px;
    bottom: 30%;
    left: 25%;
    clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
    animation-delay: 10s;
}

.bg-tech-sobre .shape:nth-child(4) {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 15%;
    border-radius: 20px;
    animation-delay: 15s;
}

@keyframes rotateShape {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: rotate(270deg) scale(1.1);
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

/* Code-like text overlay */
.bg-tech-sobre .code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(220, 53, 69, 0.4);
    white-space: nowrap;
    animation: codeFlow 12s linear infinite;
    z-index: 1;
}

.bg-tech-sobre .code-line:nth-child(6) {
    top: 10%;
    left: -100%;
    animation-delay: 0s;
    content: "function optimizeNetwork() { return true; }";
}

.bg-tech-sobre .code-line:nth-child(7) {
    top: 30%;
    left: -100%;
    animation-delay: 3s;
    content: "const data = encrypt(secureConnection);";
}

.bg-tech-sobre .code-line:nth-child(8) {
    top: 50%;
    left: -100%;
    animation-delay: 6s;
    content: "while(innovation) { createValue(); }";
}

.bg-tech-sobre .code-line:nth-child(9) {
    top: 70%;
    left: -100%;
    animation-delay: 9s;
    content: "interface TechSolution { success: true; }";
}

@keyframes codeFlow {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100%));
        opacity: 0;
    }
}

.bg-tech-sobre .container {
    position: relative;
    z-index: 2;
}
