/* =========================================================================
   O5o - Landing Page (Referência visual + estilo GORILA)
   Cores: verde #c5f455 | preto #151819 | branco #d6dfea | fonte Helvetica
   ========================================================================= */

:root {
    --color-green: #c5f455;
    --color-black: #151819;
    --color-white: #d6dfea;
    --color-bg-dark: #0d0f10;
    --color-border: rgba(214, 223, 234, 0.15);
    --font-main: Helvetica, Arial, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-black);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--color-green);
}

/* =========================================================================
   BUTTONS (clip-path estilo GORILA)
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-15deg);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--color-black);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    box-shadow: inset 0 0 0 2px var(--color-white);
}

.btn-outline:hover {
    background-color: rgba(214, 223, 234, 0.1);
    box-shadow: inset 0 0 0 2px var(--color-green);
    color: var(--color-green);
}

/* =========================================================================
   NAVBAR (fundo escuro, logo verde)
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background-color: rgba(21, 24, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-green);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================================================================
   HERO SECTION (tema escuro + verde destaque)
   ========================================================================= */
.hero-section {
    min-height: 100vh;
    background-color: var(--color-black);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(21, 24, 25, 0.85), var(--color-black)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 5 L55 20 L55 40 L30 55 L5 40 L5 20 Z" fill="none" stroke="%23c5f455" stroke-width="0.4" stroke-opacity="0.2"/></svg>');
    background-size: 80px;
    background-attachment: fixed;
    z-index: 0;
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-right: 2rem;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.hero-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-avatars {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-green), #9bc43a);
    border: 2px solid var(--color-black);
}

.hero-stat {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-white);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--color-white);
    opacity: 0.8;
}

.hero-subtitle {
    color: var(--color-white);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 420px;
    z-index: 1;
    clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mockup {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 2;
}

.mockup-card {
    background: rgba(21, 24, 25, 0.9);
    border: 1px solid rgba(197, 244, 85, 0.3);
    padding: 1.25rem 1.75rem;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    min-width: 200px;
}

.mockup-card-2 {
    margin-left: 2rem;
}

.mockup-value {
    display: block;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-green);
}

.mockup-label {
    font-size: 0.8rem;
    color: var(--color-white);
    opacity: 0.7;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 40px,
        rgba(197, 244, 85, 0.03) 40px,
        rgba(197, 244, 85, 0.03) 41px
    );
    pointer-events: none;
}

/* =========================================================================
   FEATURES SECTION (3 cards, um em destaque verde)
   ========================================================================= */
.features-section {
    padding: 6rem 0;
    background-color: var(--color-bg-dark);
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.section-subtitle {
    text-align: center;
    color: var(--color-white);
    opacity: 0.85;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(21, 24, 25, 0.8);
    border: 1px solid var(--color-border);
    padding: 2rem;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: transform var(--transition-smooth), border-color var(--transition-fast), background var(--transition-fast);
}

.feature-card:hover {
    border-color: rgba(197, 244, 85, 0.25);
    transform: translateY(-4px);
}

.feature-card-highlight {
    background: var(--color-green);
    border-color: var(--color-green);
    color: var(--color-black);
}

.feature-card-highlight .feature-title,
.feature-card-highlight .feature-desc {
    color: var(--color-black);
}

.feature-card-highlight .feature-num {
    color: var(--color-black);
    opacity: 0.7;
}

.feature-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-white);
    opacity: 0.9;
}

.feature-card-highlight .feature-desc {
    opacity: 0.85;
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-black);
    transition: opacity var(--transition-fast);
}

.feature-link:hover {
    opacity: 0.8;
}

/* =========================================================================
   PROJETOS - GALERIA / CARROSSEL
   ========================================================================= */
.projects-gallery {
    padding: 6rem 0;
    background-color: var(--color-black);
}

.projects-gallery .section-title {
    margin-bottom: 2.5rem;
}

.gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(197, 244, 85, 0.4);
    border-radius: 50%;
    background: rgba(21, 24, 25, 0.8);
    color: var(--color-green);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    z-index: 5;
}

.carousel-btn:hover {
    border-color: var(--color-green);
    background: rgba(197, 244, 85, 0.15);
    color: var(--color-white);
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-track {
    list-style: none;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 0.25rem;
}

.project-card {
    background: rgba(21, 24, 25, 0.95);
    border: 1px solid var(--color-border);
    overflow: hidden;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transition: border-color var(--transition-fast);
}

.project-card:hover {
    border-color: rgba(197, 244, 85, 0.35);
}

.project-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-smooth);
}

.project-card:hover .project-card-img img {
    transform: scale(1.02);
}

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-section {
    padding: 6rem 0;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    text-align: center;
}

.contact-section .section-title {
    color: var(--color-white);
}

.contact-section .section-subtitle {
    color: var(--color-white);
    opacity: 0.85;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(21, 24, 25, 0.9);
    border: 1px solid var(--color-border);
    padding: 2.5rem 2rem;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-smooth), border-color var(--transition-fast), background var(--transition-fast);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 244, 85, 0.3);
}

.contact-icon {
    color: var(--color-green);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.contact-card h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--color-white);
    opacity: 0.85;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.contact-action {
    color: var(--color-green);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-green);
    transition: all var(--transition-fast);
}

.contact-card:hover .contact-action {
    background: var(--color-green);
    color: var(--color-black);
}

/* =========================================================================
   FOOTER (proposta visual distinta)
   ========================================================================= */
.footer {
    position: relative;
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 0 0 1.5rem;
}

.footer-accent {
    height: 4px;
    background: var(--color-green);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

.footer-logo-link {
    display: block;
    flex-shrink: 0;
}

.footer-logo {
    max-width: 100px;
    height: auto;
    opacity: 0.9;
}

.footer-logo-link:hover .footer-logo {
    opacity: 1;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.footer-nav a:hover {
    color: var(--color-green);
    opacity: 1;
}

.footer-sep {
    opacity: 0.5;
    user-select: none;
}

.footer-legal {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* =========================================================================
   DIALOG (Sobre) — proposta visual distinta
   ========================================================================= */
.institutional-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    border: none;
    padding: 0;
    max-width: 90vw;
    width: 480px;
    max-height: 90vh;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    background: var(--color-bg-dark);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 0);
}

.institutional-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.dialog-accent {
    height: 6px;
    background: var(--color-green);
    flex-shrink: 0;
}

.dialog-inner {
    position: relative;
    padding: 2rem 2rem 3rem;
    max-height: 85vh;
    overflow-y: auto;
}

.dialog-close {
    position: absolute;
    top: 1.25rem;
    right: 1rem;
    background: none;
    color: var(--color-white);
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.dialog-close:hover {
    opacity: 1;
    color: var(--color-green);
}

.dialog-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-white);
    padding-right: 2.5rem;
}

.dialog-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-white);
    opacity: 0.9;
}

.dialog-body p {
    margin-bottom: 1rem;
}

.dialog-body p:last-child {
    margin-bottom: 0;
}

.dialog-body strong {
    color: var(--color-green);
}

.dialog-link {
    color: var(--color-green);
    font-weight: 600;
}

.dialog-link:hover {
    text-decoration: underline;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 992px) {
    .hero-grid-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-image-wrapper {
        min-height: 280px;
        clip-path: none;
        margin-top: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-highlight {
        order: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    .nav-links .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
}
