:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #00c0ff; /* Azul claro para hover/destaque */
    --dark-bg: #121212; /* Fundo escuro principal */
    --light-bg: #222222; /* Fundo mais claro para seções/cards */
    --text-color: #f0f0f0; /* Cor principal do texto */
    --light-gray: #b0b0b0; /* Cor de texto secundária/descrições */
    --border-color: #333333; /* Cor para bordas sutis */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px; /* Altere este valor para o tamanho desejado (ex: 70px, 80px, etc.) */
    width: auto; /* Garante que a proporção da imagem seja mantida */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 90vh; /* Aumentado para dar mais destaque */
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('binary_bg.jpg') no-repeat center center/cover; /* Imagem de fundo opcional, escura */
    position: relative;
    overflow: hidden; /* Para garantir que as animações não transbordem */
}

/* Elementos visuais para o fundo do hero, como na imagem */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    background: rgba(0, 192, 255, 0.1); /* Um brilho sutil azul */
    border-radius: 50%;
    filter: blur(80px); /* Suaviza o brilho */
    opacity: 0.7;
    z-index: 1;
}

.hero::before {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation: moveCircle1 15s infinite alternate ease-in-out;
}

.hero::after {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    animation: moveCircle2 18s infinite alternate ease-in-out;
}

@keyframes moveCircle1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes moveCircle2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-70px, -70px); }
}


.hero-content {
    position: relative; /* Para garantir que o conteúdo fique acima dos elementos ::before/::after */
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-message {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 400;
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem; /* Maior e mais impactante */
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeIn 1.5s ease-out;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--light-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease-out;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 192, 255, 0.4);
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Sections General Styling */
section {
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* Para conter animações internas */
}

section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    background: var(--primary-color);
    left: 15%;
    bottom: -10px;
    border-radius: 5px;
}


/* Services Section */
.services {
    background: var(--light-bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: var(--dark-bg);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 192, 255, 0.2);
    border-color: var(--secondary-color);
}

.service-card i {
    font-size: 3.5rem; /* Ícones maiores */
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.service-card:hover i {
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.service-card p {
    font-size: 1rem;
    color: var(--light-gray);
}

/* About Section */
.about {
    background: var(--dark-bg);
    padding-top: 100px;
    padding-bottom: 100px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.1rem;
    color: var(--light-gray);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--secondary-color);
}


/* Contact Section */
.contact {
    background: var(--light-bg);
    padding-bottom: 100px;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 40px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: var(--dark-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 192, 255, 0.2);
    border-color: var(--secondary-color);
}

.contact-item i {
    font-size: 3rem; /* Ícones maiores */
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-item:hover i {
    color: var(--secondary-color);
}

.contact-item p {
    font-size: 1.3rem; /* Nome do método */
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.contact-item a, .contact-item span {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* Footer */
footer {
    background: var(--dark-bg); /* Mudei para dark-bg para contraste com a seção de contato */
    color: var(--light-gray);
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}


/* Responsividade */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap; /* Permite que os itens do menu quebrem a linha */
    }

    nav ul li {
        margin: 5px 10px; /* Ajusta o espaçamento em telas menores */
    }

    .hero {
        height: auto;
        padding: 100px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero .subtitle {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .service-grid, .contact-methods {
        grid-template-columns: 1fr; /* Uma coluna em telas muito pequenas */
    }

    .service-card, .contact-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 55px; /* Ajuste para telas menores se necessário */
    }
    nav ul li {
        margin: 5px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .welcome-message {
        font-size: 0.9rem;
    }
    .hero .subtitle {
        font-size: 0.9rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .service-card h3 {
        font-size: 1.3rem;
    }
    .contact-item p {
        font-size: 1.1rem;
    }
    .contact-item a, .contact-item span {
        font-size: 1rem;
    }
}