/* RESET PROFISSIONAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIÁVEIS (BASE DO SEU SISTEMA) */

:root {
    --primary: #ff0000;
    --dark: #383838;
    --light: #ffffff;
    --gray: #666;
}

/* BASE */

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
}

body a {
    text-decoration: none;
    cursor: pointer;
}

.video-coding {
    z-index: -1;
    position: fixed;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

.video-coding video {
    position: fixed;
    height: 120%;
    
}

/* CONTAINER PADRÃO */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */

.header {
    width: 100%;
    position: fixed;
    padding: 15px;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--primary);
    z-index: 1000;
    align-items: center;
}

/* CONTAINER NAV */

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* LOGO */

.logo img {
    height: 100px;
    border-radius: 100%;
}

.logo img:hover {
    cursor: pointer;
}

/* NAV */

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

/* EFEITO PREMIUM (linha animada) */

.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* MENU MOBILE */

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* HERO */

.hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(109deg, rgba(75, 0, 0, 0.75) 15%, rgba(255, 0, 0, 0.35) 50%, rgba(75, 0, 0, 0.75) 85%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* TEXTO */

h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.2;
    color: var(--light);
}

.hero-text p {
    font-size: 24px;
    margin: 40px 0;
    color: var(--light);
    max-width: 500px;

}

/* BOTÕES */

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s;
}

.primary {
    background: var(--primary);
    color: white;
}

.secondary {
    border: 1px solid var(--light);
    color: var(--light);
}

/* HOVER PREMIUM */

.primary:hover {
    transform: translateY(-3px);
}

.secondary:hover {
    background: var(--dark);
    opacity: 0.5;
    color: white;
}

/* VISUAL */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-box {
    width: 220px;
    height: 220px;
    border: 2px solid var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-radius: 12px;
    animation: float 3s ease-in-out infinite;
}

/* ANIMAÇÃO FLUTUANTE */

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay {
    transition-delay: 0.2s;
}

.delay2 {
    transition-delay: 0.4s;
}

/* PROJECTS */

.projects {
    padding: 100px 0;
    overflow: hidden;
    background-color: #dfdfdf;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
}

/* GRID INTELIGENTE */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 25px;
}

.project-card:last-child {
    grid-column: span 2;
}

/* CARD */

.project-card {
    min-width: 100%;
    min-height: 360px;
    border-radius: 12px;
    background: var(--dark);
    color: #fff;
    padding: 30px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: flex-end;

    transform-style: preserve-3d;
    backface-visibility: hidden;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* EFEITO DE LUZ */

.project-card::before {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    background: linear-gradient(120deg, transparent, rgba(255, 0, 0, 0.25), transparent);
    top: -100%;
    left: -100%;
    transform: rotate(25deg);
    opacity: 0;
    transition: 0.35s;
    z-index: 2;
}


.project-card:hover::before {
    opacity: 1;
}

/* HOVER */

.project-card:hover {
    transform: translateY(-5px);
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
}


/* TEXTO */

.mask-cover {
    background: linear-gradient(109deg, rgba(10, 12, 16, 0.99) 15%, rgba(10, 12, 16, 0.7) 50%, rgba(10, 12, 16, 0.99) 85%);
    width: 100%;
    height: 100%;
    opacity: 0.93;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
}

#saas {
    background-image: url(https://images.unsplash.com/photo-1563986768609-322da13575f3?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    background-size: cover;
    background-position: center;
    ;
}

#landing-page {
    background-image: url(https://images.unsplash.com/photo-1542744095-291d1f67b221?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    background-size: cover;
    background-position: center;
}

#ecommerce {
    background-image: url(https://images.unsplash.com/photo-1608222351212-18fe0ec7b13b?q=80&w=774&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    background-size: cover;
    background-position: center;
}

#catalogo {
    background-image: url(https://images.unsplash.com/photo-1487014679447-9f8336841d58?q=80&w=1005&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    background-size: cover;
    background-position: center;
}

#demanda {
    background-image: url(https://images.unsplash.com/photo-1461749280684-dccba630e2f6?q=80&w=869&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    background-size: cover;
    background-position: center;
}


.card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-content h3 {
    font-size: 26px;
    width: 100%;
    display: flex;
    margin-bottom: 10px;
}

.card-content p {
    display: flex;
    color: #ccc;
    font-size: 20px;
}

/* AUTHORITY */

.authority {
    padding: 100px 0;
    background: #f9f9f9;
}

.authority-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* TEXTO */

.authority-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.authority-text p {
    color: var(--gray);
    margin-bottom: 15px;
    max-width: 500px;
}

/* STATS */

.authority-stats {
    display: flex;
    gap: 40px;
}

.stat h3 {
    font-size: 32px;
    color: var(--primary);
}

.stat p {
    color: var(--gray);
}

/* CTA */

.cta {
    padding: 100px 0;
    background: var(--dark);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    color: #ccc;
    margin-bottom: 30px;
}


/* PROJETOS-SAAS */
.project-page {
    padding: 120px 0;
}

.project-page h1 {
    margin-bottom: 20px;
}

.project-page p {
    max-width: 600px;
    margin-bottom: 30px;
}

/* FOOTER */

.footer {
    padding: 30px 0;
    background: #000;
    color: #aaa;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: white;
}


.container-contructor {
    width: 100vw;
    height: 100vh;
    /* background-color: #aaa; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-box-constructor {
    max-width: 480px;
    min-height: 480px;
    border: 2px solid var(--primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 12px;
    animation: float 3s ease-in-out infinite;
    padding: 25px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

.code-box-constructor a {
    color: var(--primary);
    text-decoration: none;
}

.hero-visual-contructor img {
    width: 150px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.caricatura {
    width: 200px;
    position: fixed;
    bottom: 10px;
    right: 15%;
    z-index: 3;
}

/* DESKTOP ---------------------------------- */
@media (max-width: 1023px) {
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        gap: 25px;
    }

    .project-card:last-child {
        grid-column: span 2;
    }

    .caricatura {
    width: 200px;
    position: fixed;
    bottom: 10px;
    right: 5%;
    z-index: 3;
    }
}

/* ===== SEÇÃO SOBRE ===== */

#about {
    margin-top: 50px;
}

.sobre {
    padding: 120px 20px;
}

/* Complemento do container padrão */
.sobre-container {
    display: flex;
    flex-direction: column;
    gap: 50px;

    max-width: 700px; /* 🔥 controla a largura */
}

/* ===== CAIXAS ===== */
.sobre-box {
    border: 2px solid red;
    border-radius: 15px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
}

/* ===== TÍTULOS ===== */
.sobre-box h1,
.sobre-box h2 {
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;

    background: linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.8),
        rgba(255, 0, 0, 0.3),
        transparent
    );

    margin-bottom: 15px;
}

/* ===== TEXTO ===== */
.sobre-box p {
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .sobre {
        padding: 80px 15px;
    }

    .sobre-box {
        padding: 20px;
    }

    .sobre-box h1,
    .sobre-box h2 {
        font-size: 18px;
    }

    .sobre-box p {
        font-size: 14px;
    }
}

#tarja-footer {
    height: 100px;
    background-color: var(--primary);
}


/* TABLET ---------------------------------- */
@media (max-width: 768px) {
    .header {
        padding: 10px;
    }

    .logo img {
        height: 70px;
    }

    .nav {
        position: absolute;
        top: 101px;
        left: 0;
        width: 100%;
        background: var(--dark);
        display: none;
        flex-direction: column;
        padding: 20px 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .menu-toggle {
        display: block;
        color: var(--primary);
        font-size: 36px;
    }

    .nav.active {
        display: flex;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 20px;

    }

    .hero {
        padding-top: 180px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .authority-container {
        flex-direction: column;
        text-align: center;
    }

    .authority-stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .caricatura {
        width: 200px;
        position: fixed;
        bottom: 10px;
        z-index: 3;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 5px;
    }

    .nav {
        top: 91px;
    }

    .video-coding video {
        height: 100vh;
        right: -50%;
    }

    .hero {
        padding-top: 160px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 18px;

    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(1, minmax(280px, 1fr));
        gap: 25px;
    }

    .project-card:last-child {
        grid-column: span 1;
    }

    .project-card {
        padding: 16px;
    }

    .card-content h3 {
        font-size: 20px;
    }

    .card-content p {
        font-size: 16px;
    }

    .code-box-constructor {
        max-width: 400px;
        font-size: 20px;
    }

    .caricatura {
        width: 135px;
        position: fixed;
        bottom: 5px;
        right: 10px;
        z-index: 3;
    }
}

@media (max-width: 360px) {
    .video-coding video {
        height: 100vh;
        right: -85%;
    }
    
    .code-box-constructor {
        max-width: 280px;
        font-size: 16px;
    }

    .caricatura {
        width: 135px;
        position: fixed;
        bottom: 0;
        right: 0;
        z-index: 3;
    }
}