* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    overflow-x: hidden;
    background-color: #f7f7f7;
    width: 100%;
}

.main-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.content, .servicos, .projetos-reais, footer {
    max-width: 100%;
    padding-left: 5%;
    padding-right: 5%;
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;  /* url('https://images.unsplash.com/photo-1515378960530-7c0da6231fb1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');*/
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    padding-bottom: 40px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;  
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    width: 100%;
}

header {
    margin-bottom: 100px;
    padding-top: 20px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.logo {
    width: 500px;
    height: auto;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
}

.logo-footer .logo {
    width: 250px;
}

.logo-footer h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.slogan {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
    margin-left: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

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

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0080bf;
}

.contato-btn {
    background-color: #0080bf;
    padding: 8px 15px;
    border-radius: 50px;
}

.btn-top {
    background-color: #0080bf;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 8px 20px;
    letter-spacing: 0.5px;
}

.contato-btn:hover {
    background-color: #0069a7;
    color: white !important;
}

.main-heading {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.description {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-button {
    display: inline-block;
    background-color: #0080bf;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    align-self: center;
}

.btn-rounded {
    background-color: white;
    color: #005a8c;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #0080bf;
}

.cta-button:hover {
    background-color: #0069a7;
}

.btn-rounded:hover {
    background-color: #f5f5f5;
    color: #004a73;
}

.projetos-reais .btn-rounded {
    background-color: white;
    color: #005a8c;
}

.cta-center {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 40px 0;
}

/* Serviços Section */
.servicos {
    background-color: white;
    padding: 80px 5%;
    text-align: center;
    margin-top: 20px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    color: #333;
    font-weight: 700;
}

.projetos-reais .section-title {
    color: white;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.servico-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

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

.servico-icon {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 20px;
}

.mobile-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230B3C82"><path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H7V4h10v16zm-4.5-1c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5z"/></svg>');
}

.web-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230B3C82"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/></svg>');
}

.ecommerce-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230B3C82"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>');
}

.dev-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230B3C82"><path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"/></svg>');
}

.security-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230B3C82"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/></svg>');
}

.marketing-icon {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230B3C82"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/></svg>');
}

.servico-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #0B3C82;
    font-weight: 600;
}

.servico-card ul {
    list-style: none;
    text-align: left;
}

.servico-card li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
    position: relative;
    padding-left: 15px;
}

.servico-card li:before {
    content: "•";
    color: #0080bf;
    position: absolute;
    left: 0;
}

/* Projetos Reais Section */
.projetos-reais {
    background-color: #0c0c1a;
    padding: 80px 5%;
    text-align: center;
    color: white;
    background-image: linear-gradient(to right, #0c0c1a, #16162c);
    margin: 0 auto;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.projeto-card {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    width: 100%;
    background-color: #1a1a2e;
}

.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 128, 191, 0.2);
}

.projeto-img {
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    transition: transform 0.3s;
    filter: none;
}

.projeto-card:hover .projeto-img {
    transform: scale(1.1);
}

/* Estilos para os cards de projeto com carrossel */
.projeto-card {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
    width: 100%;
}

.projeto-img-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.projeto-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: none;
}

.projeto-img.active {
    opacity: 1;
}

/* Overlay com informações do projeto */
.projeto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 5;
}

.projeto-card:hover .projeto-overlay {
    transform: translateY(0);
}

.projeto-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.projeto-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    color: white;
}

/* Indicadores de imagem */
.projeto-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: #0080bf;
}

.indicator:hover {
    background: rgba(0, 128, 191, 0.8);
}

/* Footer */
footer {
    background-color: #0c0c1a;
    color: white;
    padding: 80px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-footer .logo-wrapper {
    margin-bottom: 20px;
}

.footer-form {
    width: 50%;
}

.footer-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

form input, form textarea, form select {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="8" viewBox="0 0 14 8" fill="none"><path d="M1 1L7 7L13 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    color: white;
    opacity: 1;
    visibility: visible;
}

/* Destaque para o select quando em foco */
form select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #0080bf;
    border: none;
}

form select option {
    background-color: #16162c;
    color: white;
    padding: 10px;
}

/* Campo especial para outros assuntos */
#outro-assunto-group {
    transition: opacity 0.3s ease;
    opacity: 1;
}

#outro-assunto {
    transition: all 0.3s ease;
}

#outro-assunto.visible {
    display: block !important;
}

#outro-assunto-group.hidden {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form input::placeholder, form textarea::placeholder, form select::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

form input:focus, form textarea:focus, form select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 128, 191, 0.5);
}

form button {
    align-self: flex-start;
}

@media (max-width: 1500px) {
    .main-container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
        width: 100%;
        max-width: 90%;
    }
    
    .projeto-img,
    .projeto-img.active,
    .projetos-grid .projeto-img,
    .projeto-card .projeto-img {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #1a1a2e !important;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .logo-footer {
        margin-bottom: 40px;
    }
    
    .footer-form {
        width: 100%;
    }
    
    .logo {
        width: 400px;
    }
    
    .logo-footer .logo {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        height: auto;
        padding-bottom: 80px;
    }
    
    .top-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {
        margin-top: 20px;
        align-self: center;
    }
    
    .main-heading {
        font-size: 3rem;
    }
    
    .description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .logo {
        width: 300px;
    }
    
    .logo-footer .logo {
        width: 180px;
    }
}

@media (max-width: 576px) {
    .servicos-grid {
        grid-template-columns: 1fr;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 5%;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .logo {
        width: 250px;
    }
    
    .logo-footer .logo {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 5%;
    }
    
    header {
        margin-bottom: 50px;
    }
    
    .projeto-img,
    .projeto-img.active,
    .projetos-grid .projeto-img,
    .projeto-card .projeto-img,
    div[class*="projeto-img"] {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #1a1a2e !important;
    }
    
    .logo {
        width: 280px;
    }
    
    .logo-footer .logo {
        width: 160px;
    }
    
    .main-heading {
        font-size: 2.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
}

/* Remover estilos antigos das mensagens */
.mensagem-sucesso,
.mensagem-erro {
    display: none;
}

/* Estilos personalizados do SweetAlert2 */
.swal-popup {
    font-family: 'Inter', sans-serif;
    border-radius: 15px;
    padding: 20px;
}

.swal-title {
    font-weight: 600;
    color: #0B3C82;
}

.swal-confirm-button {
    background-color: #0080bf !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    padding: 12px 30px !important;
    box-shadow: 0 4px 10px rgba(0, 128, 191, 0.3) !important;
}

/* Classes personalizadas para animação */
.animate__animated {
    animation-duration: 0.5s;
}

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

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

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__fadeOut {
    animation-name: fadeOut;
}

/* Estilos para os grupos do formulário */
.form-group {
    margin-bottom: 15px;
    width: 100%;
    display: block !important;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: white;
    font-size: 0.9rem;
}

.assunto-group {
    margin-bottom: 15px;
    display: block !important;
    visibility: visible !important;
}

.outro-assunto-group {
    transition: all 0.3s ease;
}

/* Correção para o select e outros campos */
form select,
form input,
form textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Estilos mais explícitos para o select de assunto */
#select-assunto {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

/* Estilização específica para garantir a ordem correta dos campos do formulário */
form input[name="nome"] {
    order: 1;
}

form input[name="telefone"] {
    order: 2;
}

form input[name="email"] {
    order: 3;
}

form select[name="assunto"] {
    order: 4;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

form input[name="outro_assunto"] {
    order: 5;
}

form textarea[name="mensagem"] {
    order: 6;
}

form .button-container {
    order: 7;
}

/* Diferentes modos de exibição para imagens dos projetos */
.projeto-img.modo-cover {
    background-size: cover;
    background-repeat: no-repeat;
}

.projeto-img.modo-contain {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #1a1a2e;
}

.projeto-img.modo-fill {
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Modo padrão: contain (sem cortar as laterais) */

/* CORREÇÃO FINAL - Força contain em dispositivos móveis com máxima prioridade */
@media screen and (max-width: 992px) {
    .projeto-img,
    .projeto-img.active,
    .projetos-grid .projeto-img,
    .projeto-card .projeto-img,
    div[class*="projeto-img"] {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #1a1a2e !important;
    }
}

/* CORREÇÃO FINAL - Para celulares */
@media screen and (max-width: 768px) {
    .projeto-img,
    .projeto-img.active,
    .projetos-grid .projeto-img,
    .projeto-card .projeto-img,
    div[class*="projeto-img"],
    [style*="background-image"] {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #1a1a2e !important;
    }
}

/* FORÇA ABSOLUTA - Garante que funcione igual ao teste em todos os dispositivos móveis */
@media screen and (max-width: 992px) {
    .projeto-img {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #1a1a2e !important;
    }
    
    .projeto-img.active {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #1a1a2e !important;
    }
}

/* REGRA UNIVERSAL - Para todos os elementos que podem conter imagens dos projetos */
@media screen and (max-width: 768px) {
    div[style*="background-image"] {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #1a1a2e !important;
    }
} 