/* Variáveis CSS */
:root {
    --primary-blue: #2563EB;
    --secondary-purple: #7C3AED;
    --dark-bg: #1A202C;
    --medium-dark-bg: #2D3748;
    --light-text: #E2E8F0;
    --accent-glow-blue: rgba(37, 99, 235, 0.4);
    --accent-glow-purple: rgba(124, 61, 237, 0.4);
    --font-family-inter: 'Inter', sans-serif;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-family-inter);
    color: var(--light-text);
    line-height: 1.6;
    background-color: var(--dark-bg);
    overflow-x: hidden;
    min-height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Títulos de Seção */
.section-title {
    font-size: 3.5em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 70px;
    color: var(--light-text);
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.about-section .section-title,
.contact-section .section-title {
    text-align: left;
}


/* Botões Genéricos */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 15px var(--accent-glow-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 0 10px var(--accent-glow-blue);
}

.animate-hover-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.3), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover.animate-hover-gradient::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow-purple);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    border-color: var(--secondary-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow-blue);
}

.icon-gradient,
.text-gradient {
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.main-header {
    background-color: rgba(26, 32, 44, 0.8);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.main-header.scrolled {
    background-color: rgba(26, 32, 44, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--accent-glow-purple);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .logo-img {
    height: 48px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin: 0 20px;
}

.main-nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-blue);
}

/* --- Menu Hamburguer (NOVO!) --- */
.menu-toggle {
    display: none;
    font-size: 2em;
    color: var(--light-text);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

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

/* --- Menu de Navegação em Mobile (NOVO!) --- */
.main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--medium-dark-bg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.main-nav.mobile-active ul {
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.main-nav.mobile-active ul li {
    margin: 15px 0;
    width: 100%;
    text-align: center;
}

.main-nav.mobile-active ul li a {
    font-size: 1.2em;
    padding: 10px 0;
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: var(--light-text);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/img-tecno.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(124, 61, 237, 0.4));
    opacity: 1;
    box-shadow: inset 0 0 50px var(--accent-glow-blue), inset 0 0 50px var(--accent-glow-purple);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 5.5em;
    margin-bottom: 25px;
    line-height: 1.5;
    background-image: linear-gradient(90deg, #19e1ef,#681ac5, #7c3aed, #514dc3, #2563eb, #1ac1f2, #19e1ef);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: blue-glow 5s linear infinite;
    display: inline-block;
}

/* >>> NOVO KEYFRAMES PARA O H1 DA HERO SECTION <<< */
@keyframes blue-glow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }

    /* Move o gradiente pelo texto */
}

.hero-content p {
    font-size: 1.7em;
    margin-bottom: 40px;
    color: var(--light-text);
    opacity: 0.9;
}

/* Seções Genéricas */
section {
    padding: 120px 0;
    position: relative;
    background-color: var(--dark-bg);
    overflow: hidden;
}

/* About Section */
#about {
    background-color: var(--medium-dark-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 2.8em;
}

.about-text p {
    font-size: 1.15em;
    margin-bottom: 20px;
    color: var(--light-text);
    opacity: 0.8;
}

.about-image img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow-purple);
}


/* Pillars Section */
#pillars {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(124, 61, 237, 0.1) 100%);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}

.pillar-card {
    background-color: var(--medium-dark-bg);
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow-blue);
    border: 1px solid rgba(37, 99, 235, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow-purple);
    background-color: rgba(37, 99, 235, 0.2);
}

.pillar-card i {
    font-size: 4em;
    margin-bottom: 30px;
    display: block;
    transition: transform 0.3s ease;
}

.pillar-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.pillar-card h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.pillar-card p {
    font-size: 1.1em;
    color: var(--light-text);
    opacity: 0.8;
}


/* Technologies Section - Carousel Infinito */
#technologies {
    background-color: var(--dark-bg);
    position: relative;
    background-image: url('img-tecno.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

#technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 32, 44, 0.75);
    z-index: 0;
}

#technologies .container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    /* Permite que o carrossel ocupe a largura total */
}

.tech-carousel-container {
    width: 100%;
    overflow: hidden;
    /* Esconde os cards que estão fora da tela */
    position: relative;
    margin-top: 60px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    /* Efeito de fade nas bordas */
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.carousel-track {
    display: flex;
    /* Largura calculada: (Número de cards originais * (largura do card + gap)) * 2 */
    width: calc(7 * (300px + 40px)) * 2;
    /* 7 cards * 340px * 2 */
    animation: scroll 40s linear infinite;
    /* Animação de rolagem */
}

/* Animação que move o carrossel */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move a trilha para a esquerda pela metade de sua largura total */
        transform: translateX(calc(-1 * (7 * (300px + 40px))));
        /* 7 cards * 340px */
    }
}

/* Pausa a animação ao passar o mouse */
.tech-carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.tech-card {
    flex: 0 0 300px;
    /* Largura fixa de 300px para cada card */
    height: 280px;
    /* Altura fixa para alinhar */
    margin: 0 20px;
    /* Metade do gap de 40px */
    background: rgba(45, 55, 72, 0.5);
    /* Fundo semi-transparente */
    backdrop-filter: blur(10px);
    /* Efeito Glassmorphism */
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow-purple);
}

.tech-card i {
    font-size: 3.5em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.tech-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--light-text);
}

.tech-card p {
    font-size: 1em;
    color: var(--light-text);
    opacity: 0.8;
    line-height: 1.4;
}

/* Navegação do Carrossel (Setas) */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    /* Permite clicar nos cards mesmo com as setas por cima */
}

.nav-btn {
    background-color: rgba(37, 99, 235, 0.7);
    color: var(--light-text);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    /* Habilita clique nas setas */
}

.nav-btn:hover {
    background-color: var(--secondary-purple);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-glow-purple);
}


/* Contact Section */
#contact {
    background: linear-gradient(225deg, var(--dark-bg) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 1.15em;
    margin-bottom: 15px;
    color: var(--light-text);
    opacity: 0.8;
}

.contact-info p i {
    margin-right: 15px;
    font-size: 1.4em;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 25px;
}

.social-links a {
    color: var(--light-text);
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.15);
    color: var(--primary-blue);
    text-shadow: 0 0 15px var(--accent-glow-blue);
}

.contact-form-wrapper {
    background-color: var(--medium-dark-bg);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow-purple);
    border: 1px solid rgba(124, 61, 237, 0.4);
}

.proposal-form .form-group {
    margin-bottom: 25px;
}

.proposal-form label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--light-text);
    font-weight: 600;
}

.proposal-form input[type="text"],
.proposal-form input[type="email"],
.proposal-form input[type="tel"],
.proposal-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 8px;
    background-color: rgba(226, 232, 240, 0.08);
    color: var(--light-text);
    font-family: var(--font-family-inter);
    font-size: 1em;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.proposal-form input:focus,
.proposal-form textarea:focus {
    border-color: var(--secondary-purple);
    background-color: rgba(226, 232, 240, 0.15);
    box-shadow: 0 0 0 3px var(--accent-glow-purple), 0 0 15px var(--accent-glow-purple);
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    font-size: 1.2em;
    padding: 18px 0;
    margin-top: 30px;
}

.form-status {
    margin-top: 25px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--accent-glow-blue);
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    padding: 40px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    box-shadow: inset 0 20px 50px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand .logo-img {
    height: 40px;
}

.footer-brand p {
    font-size: 0.9em;
    color: var(--light-text);
    opacity: 0.6;
    margin-top: 10px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.footer-nav ul li a {
    color: var(--light-text);
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--primary-blue);
    opacity: 1;
}

/* Media Queries para Responsividade */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .header-content {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .main-header .btn-primary.animate-hover-gradient {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-text h2,
    .contact-info .section-title {
        text-align: center;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .tech-carousel-wrapper {
        padding: 0 20px;
    }

    .tech-card {
        flex: 0 0 250px;
    }

    .carousel-nav {
        width: calc(100% - 40px);
        padding: 0 5px;
    }
}

@media (max-width: 576px) {

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .section-title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }

    .about-image {
        display: none;
    }

    .tech-carousel-wrapper {
        padding: 0;
    }

    .tech-carousel {
        padding-left: 15px;
        padding-right: 15px;
    }

    .tech-card {
        flex: 0 0 calc(100% - 60px);
        scroll-snap-align: center;
        margin-left: 15px;
        margin-right: 15px;
    }

    .tech-carousel .tech-card:first-child {
        margin-left: 0;
    }

    .tech-carousel .tech-card:last-child {
        margin-right: 0;
    }

    .carousel-nav {
        display: none;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .header-content {
        padding: 0 15px;
    }

    .logo .logo-img {
        height: 40px;
    }

    .menu-toggle {
        font-size: 1.8em;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.8em;
    }
}