/*estilos.css*/
/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #060690;
    --secondary-color: #0AC6FF;
    --accent-color: #FF0000;
    --light-color: #f0f0f0;
    --dark-color: #333;
    --gray-color: #606666;
    --white-color: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== RESET E CONFIGURAÇÕES BÁSICAS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ===== HEADER ===== */
.header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

.logo {
    height: 60px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-nav ul li a:hover:after {
    width: 100%;
}


/* ===== HEADER CONTACT ===== */
.contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white-color);
    font-weight: 600;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--secondary-color);
}

.contact-item i {
    font-size: 1.2rem;
}

.contact-item.whatsapp {
    background-color: #25D366;
    padding: 8px 15px;
    border-radius: 30px;
}

.contact-item.whatsapp:hover {
    background-color: #128C7E;
    color: var(--white-color);
}

/* Botão WhatsApp para Mobile - Inicialmente oculto */
.whatsapp-mobile {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(6, 6, 144, 0.9), rgba(10, 198, 255, 0.8));
    color: var(--white-color);
    text-align: center;
    padding: 75px 20px 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slogan {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 50px 0 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 80px;
}

.about-content {
    flex: 1;
    min-width: 270px;
    padding-right: 30px;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.value-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta-section {
    text-align: center;
    margin-top: 30px;
}

.about-image {
    flex: 1;
    min-width: 270px;
    text-align: center;
}

.responsive-img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ===== PORTFOLIO PREVIEW ===== */
.portfolio-preview {
    margin-bottom: 80px;
}

.portfolio-preview h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.portfolio-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.portfolio-item {
    flex: 1;
    min-width: 250px;
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.portfolio-item h3 {
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.view-all {
    text-align: center;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    margin-bottom: 80px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    flex: 1;
    min-width: 270px;
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-price {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.service-price h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.additional-info {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.additional-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.additional-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.price-item {
    flex: 1;
    min-width: 200px;
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.price-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    /* margin-bottom: 80px; */
}

.technologies {
    text-align: center;
    margin-bottom: 50px;
}

.technologies img {
    margin: auto;
    height: 150px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 144, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    margin-bottom: 80px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-form {
    flex: 1;
    min-width: 270px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(10, 198, 255, 0.2);
}

.contact-info {
    flex: 1;
    min-width: 270px;
}

.info-card {
    background-color: var(--white-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===== CONSTRUCTION SECTION ===== */
.construction-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    text-align: center;
    margin-top: -70px;
}

.construction-content {
    max-width: 600px;
    padding: 40px;
}

.construction-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.construction-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-info,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-info i {
    margin-right: 10px;
    margin-top: 5px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--white-color);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ===== LOGIN SECTION ===== */
.login-section {
    /*padding: 80px 0;*/
}

.login-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: stretch;
}

.login-form, .login-info {
    flex: 1;
    min-width: 270px;
    max-width: 100%;
}

.form-card, .info-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    display: block;
}

.form-card h2, .info-card h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-icon input {
    padding-left: 45px;
    width: 100%;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.services-list {
    list-style: none;
    margin-bottom: 30px;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.services-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.services-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.services-list span {
    flex: 1;
}

.cta {
    text-align: center;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    transition: opacity 0.5s ease;
}

/* ===== ESTILOS ADICIONAIS PARA PAGINAÇÃO ===== */
.pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: var(--gray-color);
}

.pagination a i {
    font-size: 0.9rem;
}

/* Melhorias para o portfólio */
.portfolio-overlay p {
    font-size: 1rem;
    margin-top: 5px;
    opacity: 0.9;
}

.portfolio-item a.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.portfolio-item a.disabled:hover .portfolio-overlay {
    opacity: 0.7;
    background: rgba(100, 100, 100, 0.8);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .slogan {
        font-size: 1.3rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .contact-header {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white-color);
        transition: var(--transition);
        z-index: 999;
    }

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

    .main-nav ul {
        flex-direction: column;
        padding: 30px;
    }

    .main-nav ul li {
        margin: 0 0 20px 0;
    }

    .hero {
        padding: 50px 20px 25px;
        overflow: unset;
    }

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

    .slogan {
        font-size: 1.1rem;
    }

    .about-section {
        flex-direction: column;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .values {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    /* Estilos de login para mobile */
    .login-container {
        flex-direction: column;
    }

    .form-card, .info-card {
        padding: 30px 20px;
        display: block;
    }

    /* Exibir botão WhatsApp no mobile */
    .whatsapp-mobile {
        display: block;
    }

    /* Ajustar layout do header para mobile */
    .header .container {
        justify-content: space-between;
    }

    .logo-container {
        order: 1;
    }

    .whatsapp-mobile {
        order: 2;
    }

    .mobile-menu-btn {
        order: 3;
    }
}

@media (max-width: 576px) {
    .section-header h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .portfolio-preview-container {
        flex-direction: column;
    }

    .services-container {
        flex-direction: column;
    }

    .additional-prices {
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    /* Ajustar o botão WhatsApp para telas muito pequenas */
    .whatsapp-mobile .contact-item.whatsapp {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .whatsapp-mobile .contact-item i {
        font-size: 1rem;
    }
}

.carousel-container img {
    object-fit: contain; /* Mantém a proporção sem cortar */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Garante que o padding não aumente o tamanho total do elemento */
*, *:before, *:after {
    box-sizing: border-box;
}

/* Garante que o container do formulário seja flexível mas contido */
.contact-card {
    width: 100%;
    max-width: 850px;
    overflow: hidden; /* Corta qualquer coisa que tente sair do limite */
}

/* Ajuste para inputs não vazarem em telas pequenas */
input, textarea, select {
    max-width: 100%;
}

/* Esconde a barra de rolagem mas mantém a funcionalidade */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Garante que no Desktop os cards fiquem centralizados */
@media (min-width: 768px) {
    .hide-scrollbar {
        justify-content: center;
        overflow-x: hidden;
    }
}
