/* ===========================
   VARIÁVEIS E CONFIGURAÇÕES
   =========================== */

:root {
    --primary-color: #050D1A;
    --primary-light: #0D1B2A;
    --primary-dark: #030609;
    --secondary-color: #0066CC;
    --accent-color: #00A8E8;
    --success-color: #06A77D;
    --warning-color: #FFB703;
    --danger-color: #FB5607;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #495057;
    --text-color: #212529;
    --muted-color: #6C757D;
}

/* ===========================
   RESET E ESTILOS GLOBAIS
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* ===========================
   TIPOGRAFIA
   =========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

.display-4,
.display-5 {
    font-weight: 700;
    color: var(--primary-color);
}

p {
    color: var(--text-color);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--muted-color);
}

.text-muted {
    color: var(--muted-color) !important;
}

/* ===========================
   NAVBAR
   =========================== */

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

.navbar-brand i {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

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

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

/* ===========================
   SEÇÃO HERO
   =========================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);

    /* background-image: url('images/fundo.jpg'); /* apagar para tirar fundo */
    /* background-repeat: no-repeat; /* apagar para tirar fundo */
    /* background-size: cover; /* apagar para tirar fundo */

    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    /* display: none; /* apagar para tirar fundo */
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(0, 168, 232, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(0, 102, 204, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideInLeft 0.8s ease-out;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: slideInRight 0.8s ease-out;
}

.hero-image img {
    width: 75%;
    color: var(--accent-color);
    filter: drop-shadow(0 10px 20px rgba(0, 168, 232, 0.3));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}


/* ===========================
   BOTÕES
   =========================== */

.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.3);
}

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

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

.btn-lg {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
}

/* ===========================
   SEÇÃO SOBRE
   =========================== */

#sobre {
    padding: 80px 0;
}

.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.card-title {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.card-title i {
    color: var(--secondary-color);
}

/* ===========================
   SEÇÃO SERVIÇOS
   =========================== */

#servicos {
    padding: 80px 0;
    background-color: var(--white);
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(5, 13, 26, 0.15);
}

.service-card:hover h5,
.service-card:hover p {
    color: var(--white);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.service-card p {
    color: var(--muted-color);
    font-size: 0.95rem;
}

/* ===========================
   SEÇÃO CLIENTES
   =========================== */

#clientes {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.client-logo {
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.client-logo i {
    color: var(--secondary-color);
}

.client-logo p {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.stars i {
    margin-right: 0.25rem;
}

/* ===========================
   SEÇÃO CONTATO
   =========================== */

#contato {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-form {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-control {
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-info {
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
}

.contact-info:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-info:hover h5,
.contact-info:hover p {
    color: var(--white);
}

.contact-info i {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.contact-info:hover i {
    color: var(--accent-color);
    transform: scale(1.2);
}

.contact-info h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-info p {
    color: var(--muted-color);
    font-size: 0.95rem;
}

/* ===========================
   RODAPÉ
   =========================== */

footer {
    background-color: var(--primary-color) !important;
    color: var(--white);
    padding-top: 3rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
    color: var(--white);
    font-size: 1.1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.social-links a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.link-dev a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: .5rem;
    border-radius: 10px;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===========================
   ALERTAS E MENSAGENS
   =========================== */

.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
}

/* ===========================
   RESPONSIVIDADE
   =========================== */

/* Tablets */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .hero-image i {
        font-size: 5rem !important;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .service-card,
    .testimonial-card,
    .contact-info {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    footer {
        text-align: center;
    }

    footer .row {
        margin-bottom: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ===========================
   ANIMAÇÕES E TRANSIÇÕES
   =========================== */

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   UTILITÁRIOS
   =========================== */

.text-primary {
    color: var(--secondary-color) !important;
}

.bg-dark {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.rounded-12 {
    border-radius: 12px;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 36px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}