/* ========================================= */
/* VARIÁVEIS E RESET GERAL */
/* ========================================= */
:root {
    --bg-main: #0f172a;
    --bg-card: #111827;
    --bg-footer: #0b1120;
    --primary: #38bdf8;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --border-color: #1f2937;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ========================================= */
/* NAVBAR */
/* ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: var(--bg-card);
    position: relative;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.menu a:hover {
    color: var(--primary);
}

.btn-menu {
    background: var(--primary);
    color: var(--bg-main);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: .3s;
}

.btn-menu:hover {
    background: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

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

/* ========================================= */
/* BOTÕES GLOBAIS */
/* ========================================= */
.btn-primary {
    background: var(--primary);
    color: var(--bg-main);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: .3s;
    text-align: center;
    display: inline-block;
}

.btn-primary:hover {
    background: white;
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--text-main);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: .3s;
    text-align: center;
    display: inline-block;
}

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

.btn-card {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 14px;
}

/* ========================================= */
/* HERO */
/* ========================================= */
.hero {
    text-align: center;
    padding: 120px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 52px;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========================================= */
/* SERVIÇOS & PORTFÓLIO & FORMAÇÃO */
/* ========================================= */
.services, .portfolio, .why-corebyte {
    padding: 100px 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.services h2, .portfolio h2, .why-corebyte h2 {
    text-align: center;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
}

.portfolio-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 20px;
}

.cards, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card, .portfolio-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: .3s;
}

.card:hover, .portfolio-card:hover {
    transform: translateY(-8px);
}

.card h3, .portfolio-card h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.card p, .portfolio-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.portfolio-image {
    width: 100px;
    height: 100px;
    background: var(--primary);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    margin: 0 auto 25px;
}

/* ========================================= */
/* SOBRE */
/* ========================================= */
.about {
    padding: 100px 60px;
    background: var(--bg-card);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 280px;
}

.image-placeholder {
    width: 420px;
    height: 300px;
    background: var(--bg-main);
    border: 3px dashed var(--primary);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
}

/* ========================================= */
/* FORMAÇÃO (WHY-COREBYTE) */
/* ========================================= */
.why-corebyte {
    background: var(--bg-card);
}

.why-grid {
    max-width: 1300px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-card {
    background: var(--bg-main);
    padding: 30px;
    border-radius: 15px;
    transition: .3s;
    text-align: center;
}

.why-card:hover {
    transform: translateY(-10px);
}

.why-icon {
    width: 100px;
    height: 100px;
    background: var(--primary);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    margin: 0 auto 25px;
}

.why-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
}

.why-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================= */
/* DEPOIMENTOS */
/* ========================================= */
.testimonials {
    padding: 100px 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.testimonials h2 {
    text-align: center;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: .3s;
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.testimonial-avatar {
    font-size: 45px;
    margin-bottom: 15px;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

.testimonial-role {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 5px;
}

/* ========================================= */
/* FAQ */
/* ========================================= */
.faq {
    padding: 100px 60px;
    background: var(--bg-card);
}

.faq h2 {
    text-align: center;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-card {
    background: var(--bg-main);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: .3s;
}

.faq-card:hover {
    border-color: var(--primary);
}

.faq-question {
    color: var(--primary);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    padding-left: 32px;
}

/* ========================================= */
/* CONTATO */
/* ========================================= */
.contact {
    padding: 100px 60px;
}

.contact h2 {
    text-align: center;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-container {
    max-width: 1100px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.contact-info, .contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-info-item {
    margin-bottom: 25px;
}

.contact-info-item h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-item p, .contact-info-item a {
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    line-height: 1.6;
    transition: .3s;
}

.contact-info-item a:hover {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary);
    font-weight: bold;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: .3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================= */
/* RODAPÉ (FOOTER) */
/* ========================================= */
.footer {
    background: var(--bg-footer);
    padding: 80px 60px 30px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-col p {
    content: "";
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: .3s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ========================================= */
/* BOTÃO FLUTUANTE DO WHATSAPP */
/* ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #FFF;
}