:root {
    --azul-medio: #002459;
    --azul-claro: #007bff;
    --laranja-claro: #ff6600;
    --color-secundary: #f4b400;
    --collor-white-escuro: #f8f9fa;
    --collor-white: #fff;
}


@font-face {
  font-family: 'fonte_pl';
  src: url('../assets/fonts/akira_expanded_demo.OTF') format('opentype');
}

.bg-blue-medium {
    background-color: var(--azul-medio);
}

.text-blue-medium {
    color: var(--azul-medio);
}   

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

.canvas {
    display: block;
}

.main_text{   
    font-size: 1.5rem;
    color: var(--azul-medio);
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
}

body {
    font-family: "ElenSans", Sans-serif;
    font-size: 18px;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.main-header {
    background: var(--azul-medio);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    margin-right: 2rem;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav .menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.menu li a {
    color: var(--collor-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.menu li a:not(.login-btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secundary);
    transition: width 0.3s ease;
}

.menu li a:not(.login-btn):hover::after,
.menu li a:not(.login-btn).active::after {
    width: 100%;
}

.menu li a.login-btn {
    background: var(--color-secundary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    color: var(--azul-medio);
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu li a.login-btn:hover {
    background: var(--color-secundary);
    color: var(--collor-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--color-secundary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background: var(--collor-white-escuro);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.fiber-lines {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    transition: all 0.2s ease-out;
    opacity: 0;
}

#particles-js {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}


.fiber {
    position: absolute;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--azul-medio), transparent);
    animation: fiber-flow 3s linear infinite;
}

@keyframes fiber-flow {
    0% {
        transform: translateX(-100%) skewX(45deg);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) skewX(45deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.hero-content {
    text-align: center;
    color: var(--collor-white);
    z-index: 1;
    padding: 2rem;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    animation: fade-down 1s ease-out;
}

.tagline-logo {
    max-width: 200px;
    width: 80%;
    height: auto;
    margin-left: 10rem;
    animation: fade-up 1s ease-out 0.3s both;
}

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

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

.my-secondary-title {
    color: var(--azul-medio);
    font-size: 22px;
}

/* Services Section */

.services {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 6rem 2rem;
  background-image: url('../assets/images/service_images/seguranca.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 36, 89, 0.60); 
  z-index: 2;
  pointer-events: none;
}

.services-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    z-index: 3;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
}

.services *{
    z-index: 3;
}

.service-card {
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--collor-white);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background-color: rgba(255, 255, 255, 0.3);
}

.service-card h3 {
    color: var(--collor-white);
    margin-bottom: 1rem;
}

.service-card i{
    color: var(--collor-white);
    margin-bottom: 10px;
    font-size: 50px;
    align-items: center;
}

.service-card p{
    color: var(--collor-white);
    font-size: 14px;
    align-items: center;
}

/* Info Noticias */

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--collor-white);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-decoration span {
    height: 2px;
    width: 50px;
    background: var(--color-secundary);
    display: inline-block;
    transition: width 0.3s ease;
}

.title-decoration i {
    color: var(--color-secundary);
    font-size: 1.5rem;
}

.section-title:hover .title-decoration span {
    width: 75px;
}

.info_noticias {
    padding: 5rem 2rem;
    background: var(--azul-medio);
    position: relative;
    z-index: 1;
    min-height: 500px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.news-card {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.news-card:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7)), 
                      url('../assets/images/info_noticias/internet_todos.jpg');
}

.news-card:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7)), 
                      url('../assets/images/info_noticias/5g.png');
}

.news-card:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7)), 
                      url('../assets/images/info_noticias/fibra_otica.jpg');
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card.card-notice::before {
    background: #DB4437;
}

.news-card.card-event::before {
    background: #0F9D58;
}

.news-card:nth-child(3)::before {
    background: #F4B400;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--collor-white);
    backdrop-filter: blur(5px);
}

.news-tag-notice {
    background-color: rgba(231, 76, 60, 0.9);
}

.news-tag-new {
    background-color: rgba(46, 204, 113, 0.9);
}

.news-tag-info {
    background-color: rgba(244, 180, 0, 0.9);
    
}

.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--collor-white);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.news-card:hover .news-content {
    transform: translateY(-5px);
}

.news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.news-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Piaui Map */

.piaui_map { 
    height: 450px;
    width: 100%; 
}

.map-container {
    height: 100%;
    width: 100%;
}

/* Network fiber-lines */

#network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s;
}

.node {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--azul-medio); 
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    transition: opacity 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.edge {
    position: absolute;
    height: 1px;
    background-color: #303f9f;
    transform-origin: left center;
    opacity: 0.1;
    transition: opacity 0.4s ease, background-color 0.4s ease;
}

/* Footer */

footer {
    background-color: var(--azul-medio);
    color: var(--collor-white);
}

.footer-line {
    justify-content: center;
border-top: solid 2px var(--color-secundary);
}

.my-icons-footer {
font-size: 38px;
color: var(--collor-white);
}

.my-icons-footer:hover {
color: var(--color-secundary);
}

footer a {
text-decoration: none;
color: var(--collor-white);
}

footer a:hover {
color: var(--color-secundary);
}

.footer-info .my-secondary-title {
color: var(--color-secundary) !important;
}
 
/* Digital Particles Animation */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2 !important;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: float 6s infinite;
    z-index: 2 !important;
}


.carousel-div{
    background-color: var(--collor-white)
}

.carousel-caption h5 {
    font-size: 2rem;
    color: #fff;
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #fff;
}

.carousel-caption .btn {
    background-color: var(--azul-medio);
    border: none;
    color: #fff;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: bold;
}

.carousel-caption .btn:hover {
    background-color: var(--azul-medio);
}


.carousel-control-prev-icon {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="%231a237e" viewBox="0 0 8 8"%3E%3Cpath d="M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z"/%3E%3C/svg%3E'); 
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231a237e' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"); 
}

.carousel-item {
    text-align: center;
}

.carousel-inner img {
    width: auto;
    height: 500px;
    object-fit: contain; 
    display: block;
    margin: auto;
}

.carousel-indicators li {
    background-color: var(--azul-medio);
}

.carousel-indicators .active {
    background-color: var(--azul-medio);
}


@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Map Section */
.map-section {
    scroll-margin-top: 100px;
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, var(--azul-medio) 1%, var(--collor-white-escuro) 100%);
}

.map-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.map-container {
    height: 600px;
    width: 100%;
    border-radius: 15px;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    border-left: 4px solid var(--color-secundary);
    backdrop-filter: blur(10px);
}

.map-info h3 {
    color: var(--azul-medio);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-info p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.map-legend {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.legend-item i {
    color: var(--azul-medio);
}

.legend-item i.fa-wifi {
    color: var(--laranja-claro);
}

.legend-item i.fa-school {
    color: var(--azul-claro);
}

.capital {
    color: var(--color-secundary);
}

/* Marcadores personalizados */
.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-marker.pap i{
    color: var(--laranja-claro);
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.custom-marker.city i {
    color: var(--azul-medio);
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.custom-marker.teresina i {
    color: var(--color-secundary);
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Popup personalizado */
.custom-popup {
    padding: 0.5rem;
}

.custom-popup h4 {
    color: var(--azul-medio);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.custom-popup p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.menu li a.inicio::after {
    background: #F4B400; 
}

.menu li a.servicos::after {
    background: #DB4437; 
}

.menu li a.wifi::after {
    background: #0F9D58;
}

.menu li a.quem_somos::after {
    background: var(--collor-white);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
    transition: all 0.2s ease;
}

.whatsapp-float .whatsapp-text {
    position: absolute;
    right: 75px;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: translateY(-5px);
    color: #FFF;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

.whatsapp-float i {
    margin-top: 2px;
}


@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .main-logo {
        max-width: 300px;
    }

    .tagline-logo {
        margin-left: 0px;
        max-width: 220px;
    }

    .logo-container {
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--azul-medio);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav .menu {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .menu li a {
        font-size: 1.2rem;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .map-section {
        padding: 2rem 1rem;
    }

    .map-container {
        height: 400px;
    }

    .map-overlay {
        position: relative;
        top: auto;
        left: auto;
        max-width: 100%;
        margin-top: -20px;
        border-radius: 0 0 15px 15px;
        border-left: none;
        border-top: 4px solid var(--color-secundary);
    }
    .map-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .map-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .map-legend {
        display: flex;
        justify-content: center;
        gap: 2rem;
        padding-top: 0.8rem;
    }
    .menu {
        display: none;
    }

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

    .hero-content p {
        font-size: 1.2rem;
    }

    .fiber-lines {
        background-size: contain; 
        background-position: center center; 
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card {
        height: 300px;
    }

    .news-content h3 {
        font-size: 1.3rem;
    }

    .news-content p {
        font-size: 0.85rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }

    .title-decoration span {
        width: 30px;
    }

    .section-title {
        margin-bottom: 3rem;
    }
    .services {
        padding: 4rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        padding: 1rem;
    }
    .service-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 250px;
    }

    .tagline-logo {
        margin-left: 0px;
        max-width: 180px;
    }

    .hero-content {
        padding: 1.5rem;
    }
    .header-container {
        padding: 1rem;
    }

    .logo img {
        height: 40px;
    }
    .section-title h2 {
        font-size: 1.75rem;
    }
    .map-section {
        padding: 2rem 0.5rem;
    }
    
    .map-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .map-info h3 {
        font-size: 1.2rem;
    }

    .map-legend {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .legend-item {
        justify-content: center;
    }
    .services {
        padding: 3rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Filtros do mapa */
.map-filters {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 0.5rem 0.7rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    border: 1px solid #eee;
}

.filter-btn {
    background: var(--azul-medio);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    outline: none;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-secundary);
    color: var(--azul-medio);
    box-shadow: 0 4px 16px rgba(244,180,0,0.10);
}

.filter-btn i {
    font-size: 1.1em;
}

@media (max-width: 600px) {
    .map-filters {
        position: static;
        margin: 0 auto 1rem auto;
        justify-content: center;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        padding: 0.5rem 0.7rem;
    }
    .filter-btn {
        font-size: 0.95rem;
        padding: 0.4rem 0.7rem;
    }
}

.leaflet-marker-icon.fade-in {
    opacity: 0;
    animation: fadeInMarker 1.1s forwards;
}

@keyframes fadeInMarker {
    to {
        opacity: 1;
    }
}

