:root {
    --bg-main: #07111F;
    --primary: #69D5C3;
    --primary-hover: #4fb9a7;
    --bg-secondary: #1F6F78;
    --text-light: #F7FAFC;
    --text-muted: #9FB2C3;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 15px 30px rgba(7, 17, 31, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary, .btn-secondary, .btn-cta {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(105, 213, 195, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(105, 213, 195, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(105, 213, 195, 0.05);
}

.header {
    background-color: rgba(7, 17, 31, 0.92);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(159, 178, 195, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.logo-img {
    max-height: 45px;
    width: auto;
    display: block;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* BOTÃO HAMBURGUER (INVISÍVEL NO PC) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.btn-cta {
    background-color: rgba(105, 213, 195, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-cta:hover {
    background-color: var(--primary);
    color: var(--bg-main);
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 30%, rgba(31, 111, 120, 0.25) 0%, var(--bg-main) 70%);
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.services, .home-highlights, .about {
    padding: 90px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card, .highlight-box {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(159, 178, 195, 0.15);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(7, 17, 31, 0.8);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3, .highlight-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p, .highlight-box p {
    color: var(--text-light);
    opacity: 0.9;
}

.portfolio-hero {
    padding: 140px 0 40px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(31, 111, 120, 0.2) 0%, var(--bg-main) 100%);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.filter-btn {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    border: 1px solid rgba(159, 178, 195, 0.2);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
    font-weight: 700;
}

.portfolio-gallery {
    padding: 40px 0 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(159, 178, 195, 0.15);
    transition: var(--transition);
    cursor: zoom-in;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(7, 17, 31, 0.95) 0%, rgba(31, 111, 120, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tag {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-overlay h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin: 0.3rem 0 0.8rem 0;
}

.zoom-action {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 17, 31, 0.96);
    backdrop-filter: blur(15px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-light);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-lightbox:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-container {
    max-width: 85%;
    max-height: 75vh;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(105, 213, 195, 0.3);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.lightbox-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 75vh;
    pointer-events: none;
}

.lightbox-info {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.lightbox-info p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.lightbox-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 3000;
    font-weight: 600;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    bottom: 30px;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    gap: 1.2rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(159, 178, 195, 0.2);
    background-color: var(--bg-secondary);
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(105, 213, 195, 0.15);
    background-color: rgba(31, 111, 120, 0.8);
}

.footer {
    background-color: rgba(5, 12, 22, 0.95);
    padding: 3rem 0;
    border-top: 1px solid rgba(159, 178, 195, 0.1);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.adm-link {
    color: rgba(159, 178, 195, 0.5) !important;
    font-size: 0.85rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVIDADE E GAVETA MOBILE (TELA < 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Revela o ícone ☰ no celular */
    }

    .btn-cta {
        display: none; /* Esconde o botão superior para dar espaço ao menu */
    }

    /* Transformamos o menu numa gaveta fluida */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%; /* Começa escondida para fora da tela */
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(7, 17, 31, 0.98);
        backdrop-filter: blur(15px);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.open {
        left: 0; /* Desliza para dentro quando o JS ativar */
    }

    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .nav-menu a {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-buttons, .input-group {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}