@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #ffffff;
    --background-color: #121212;
    --card-background: #1e1e1e;
    --text-color: #ffffff;
    --text-secondary-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

section {
    padding: 60px 20px;
    text-align: center;
}

/* Header and Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    margin-bottom: 1rem;
}

.rating {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.btn {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

/* General Sections */
h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* Services Section */
.services-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* ======================================================= */
/* COLE ESTE BLOCO NO LUGAR DAS REGRAS ANTERIORES     */
/* PARA .service-card                       */
/* ======================================================= */

.service-card {
    background: var(--card-background);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    
    /* ESTADO INICIAL DA ANIMAÇÃO DE SCROLL */
    opacity: 0;
    transform: translateY(30px);

    /* TRANSIÇÃO CORRIGIDA: com o "pulinho" de volta para o transform */
    transition: opacity 0.6s ease-out, 
                transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.3s ease, 
                background 0.3s ease;
}

/* ESTADO FINAL DA ANIMAÇÃO quando o card se torna visível */
.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    background: #2a2a2a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    /* EFEITO DE PULO RESTAURADO: Sobe 10px ao passar o mouse */
    transform: translateY(-10px);
}

.service-card:active {
    /* O efeito de clique continua o mesmo */
    transform: scale(0.98); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary-color);
}

/* About Us Section */
.about-section {
    background-color: var(--card-background);
}

.about-content {
    max-width: 700px;
    margin: 0 auto 2rem auto;
}
.about-content p {
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: var(--card-background);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary-color);
}

/* Estilos da Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.modal-overlay.visible,
.modal-container.visible {
    opacity: 1;
    pointer-events: auto;
}
.modal-container.visible {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.modal-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-content h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.modal-portfolio-links a {
    display: block;
    background-color: #333;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.modal-portfolio-links a:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}


/* Footer */
.footer-section {
    padding: 2rem;
    background-color: #1a1a1a;
    text-align: center;
}
.footer-section .logo {
    margin-bottom: 1rem;
    display: inline-block;
}
.footer-section p {
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 40px 15px;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 350px;
    }
}

/* Estilos de Imagem de Logo */
.logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

.logo-main-img {
    width: 300px;
    height: auto;
   /* margin-bottom: 1.5rem;*/
}