/* ==================== ANIMAÇÕES GLOBAIS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== ESTILOS GERAIS ==================== */
* {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

section {
    scroll-margin-top: 90px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    max-height: 60px;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
    margin: 0 5px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #00d4ff !important;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 12px;
}

.btn-login {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
    margin: 5px;
    border-radius: 4px;
}

.btn-login:hover {
    background-color: white;
    color: rgb(25, 53, 105);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-signup {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    transition: all 0.3s ease;
    margin: 5px;
    border-radius: 4px;
}

.btn-signup:hover {
    background: linear-gradient(135deg, #0099cc, #00d4ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* ==================== CARROSSEL ==================== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.1);
}

/* ==================== SECÇÃO DE ESTATÍSTICAS ==================== */
.stat-card {
    animation: scaleUp 0.8s ease-out forwards;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    color: #00d4ff;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ==================== CARDS ==================== */
.card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    border-radius: 12px;
    animation: fadeInUp 0.6s ease-out;
}

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

.p-4.border {
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.p-4.border:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* ==================== CARDS DE SERVIÇOS ==================== */
.col-lg-4 .p-4.border {
    position: relative;
    overflow: hidden;
}

.col-lg-4 .p-4.border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgb(25, 53, 105), #00d4ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.col-lg-4 .p-4.border:hover::before {
    transform: scaleX(1);
}

/* ==================== TESTIMONIAL CARDS ==================== */
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    border-color: rgb(25, 53, 105) !important;
}

.testimonial-card .bi-star-fill {
    transition: all 0.3s ease;
}

.testimonial-card:hover .bi-star-fill {
    transform: scale(1.2) rotate(10deg);
}

/* ==================== BUTTONS ==================== */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 6px;
    font-weight: 600;
    padding: 10px 24px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, rgb(25, 53, 105), rgb(15, 35, 70));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgb(15, 35, 70), rgb(25, 53, 105));
}

.btn-submit {
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(25, 53, 105, 0.3);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* ==================== FORMULÁRIO ==================== */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    padding: 10px 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgb(25, 53, 105);
    box-shadow: 0 0 0 0.2rem rgba(25, 53, 105, 0.15);
}

.form-label {
    color: rgb(25, 53, 105);
    margin-bottom: 8px;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* ==================== ANIMAÇÕES DO SCROLL ==================== */
.scroll-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.scroll-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.scroll-fade-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 45px;
    }

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

    .stat-number {
        font-size: 2rem;
    }

    .col-lg-4 {
        margin-bottom: 20px;
    }

    .p-4.border {
        padding: 1.5rem !important;
    }
}

/* ==================== FOOTER ==================== */
footer {
    transition: all 0.3s ease;
}

footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a:hover {
    color: #00d4ff !important;
    transform: translateX(5px);
}

footer .bi {
    transition: transform 0.3s ease;
}

footer a:hover .bi {
    transform: scale(1.2);
}