/**
 * Main Page CSS - Inteligência Brasil
 * Estilos específicos para a página principal
 * v1.0.0
 */

/* ========================================
   NAVBAR NAVY BLUE THEME
   ======================================== */
.navbar-custom {
    background: rgba(13, 30, 56, 0.95) !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    backdrop-filter: blur(20px);
}

.navbar-custom.top-nav-collapse {
    background: rgba(10, 22, 40, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-custom .nav-link {
    color: #F1F5F9 !important;
}

.navbar-custom .nav-link:hover {
    color: #60A5FA !important;
}

.navbar-custom .dropdown-menu {
    background: #0f2035 !important;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.navbar-custom .dropdown-item {
    color: #94A3B8 !important;
}

.navbar-custom .dropdown-item:hover {
    background: rgba(96, 165, 250, 0.1) !important;
    color: #60A5FA !important;
}

.navbar-custom .dropdown-items-divide-hr {
    background: rgba(96, 165, 250, 0.1) !important;
}

.navbar-custom .hexagon {
    border-color: rgba(96, 165, 250, 0.3) !important;
}

.navbar-custom .social-icons i {
    color: #60A5FA !important;
}

/* ========================================
   SPINNER NAVY
   ======================================== */
.spinner-wrapper {
    background: #0D1E38 !important;
}

.spinner > div {
    background: #60A5FA !important;
}

/* ========================================
   MORPHEXT ANIMATION WITH NEON EFFECT
   ======================================== */
#js-rotating,
#js-rotating > .animated,
#js-rotating.text-gradient,
.hero-title .text-gradient#js-rotating {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background-clip: unset !important;
    color: #FFFFFF !important;
    text-shadow:
        0 0 5px #60A5FA,
        0 0 10px #60A5FA,
        0 0 20px #3B82F6,
        0 0 40px #3B82F6,
        0 0 60px #2563EB;
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    0% {
        text-shadow:
            0 0 5px #60A5FA,
            0 0 10px #60A5FA,
            0 0 20px #3B82F6,
            0 0 40px #3B82F6;
    }
    100% {
        text-shadow:
            0 0 5px #60A5FA,
            0 0 15px #60A5FA,
            0 0 30px #3B82F6,
            0 0 50px #3B82F6,
            0 0 70px #2563EB;
    }
}

/* ========================================
   MOBILE MENU ANIMATION
   ======================================== */
@media (max-width: 767.98px) {
    .navbar-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.3s ease;
        opacity: 0;
    }

    .navbar-collapse.collapsing {
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease-out, opacity 0.3s ease;
    }

    .navbar-collapse.show {
        max-height: 500px;
        opacity: 1;
        transition: max-height 0.5s ease-in, opacity 0.4s ease;
    }

    .navbar-nav .nav-item {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-collapse.show .navbar-nav .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-collapse.show .navbar-nav .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(5) { transition-delay: 0.3s; }

    .navbar-collapse.show .social-icons {
        opacity: 1;
        transition-delay: 0.35s;
    }

    .social-icons {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Hamburger Animation */
    .navbar-toggler {
        position: relative;
        transition: transform 0.3s ease;
    }

    .navbar-toggler:not(.collapsed) {
        transform: rotate(180deg);
    }

    .navbar-toggler-awesome {
        transition: transform 0.3s ease, opacity 0.2s ease;
    }
}

/* ========================================
   NAVBAR MINIMAL (Secondary Pages)
   ======================================== */
.navbar-minimal .navbar-brand {
    display: none !important;
}

.navbar-minimal .navbar-toggler {
    margin-left: 0;
}

@media (min-width: 768px) {
    .navbar-minimal .navbar-brand {
        display: none !important;
    }

    .navbar-minimal .navbar-nav {
        margin-left: 0;
    }
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
    background: linear-gradient(135deg, #0D1E38 0%, #1a3a5c 50%, #0D1E38 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2360A5FA' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.newsletter-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-content {
    margin-bottom: 30px;
}

.newsletter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.newsletter-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 5px 20px rgba(96, 165, 250, 0.4));
}

.newsletter-icon i {
    font-size: 28px;
    color: #fff;
}

.newsletter-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: #94A3B8;
    font-size: 1rem;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 50px;
    padding: 6px;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: #60A5FA;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #F1F5F9;
    font-size: 1rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: #64748B;
}

.newsletter-btn {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-btn i {
    font-size: 0.9rem;
}

.newsletter-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22C55E;
}

.newsletter-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.newsletter-disclaimer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #64748B;
}

.newsletter-disclaimer i {
    margin-right: 5px;
    color: #60A5FA;
}

@media (max-width: 576px) {
    .newsletter-section {
        padding: 50px 20px;
    }

    .newsletter-content h2 {
        font-size: 1.4rem;
    }

    .newsletter-input-group {
        flex-direction: column;
        border-radius: 12px;
        padding: 10px;
    }

    .newsletter-input {
        text-align: center;
        padding: 12px 15px;
    }

    .newsletter-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .newsletter-btn .btn-text {
        display: inline;
    }
}
