/* assets/css/style.css */

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

:root {
    /* Cores ajustadas para a nova logo StarNex */
    --primary: #00e5e5; /* Um ciano/azul mais próximo ao da logo */
    --secondary: #a00060; /* Um magenta/roxo mais escuro */
    --accent: #6020a0; /* Um roxo ligeiramente diferente para o gradiente */
    --bg-dark: #000000; /* Fundo totalmente preto como na logo */
    --bg-darker: #0d0d0d; /* Um preto muito escuro para seções */
    --bg-card: rgba(255, 255, 255, 0.05); /* Fundo dos cards mais transparente para manter o escuro */
    --text-light: #ffffff; /* Texto branco puro */
    --text-muted: #cccccc; /* Cinza claro para textos secundários */
    --glass: rgba(255, 255, 255, 0.08); /* Efeito de vidro mais sutil */
    --neon-glow: rgba(0, 229, 229, 0.4); /* Glow ajustado para o novo primary */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.05s ease; /* Reduced transition for faster response */
    mix-blend-mode: screen;
}

.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s linear, opacity 0.5s ease-out; /* Adjusted transition for smoother fade and movement */
}

/* Mouse Following Light Effect */
.mouse-light {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--neon-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    transition: transform 0.05s ease; /* Reduced transition for faster response */
}

/* Neural Network Background */
.neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.neural-node {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
    animation: flow 2s linear infinite;
    transform-origin: 0 0; /* Important for rotation */
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes flow {
    0% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9); /* Fundo mais opaco para o header */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 229, 229, 0.2); /* Borda ajustada */
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-icon::before {
    content: url('../img/logoIcon.png');
    font-size: 20px;
    filter: drop-shadow(0 0 10px var(--primary));
    
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px var(--neon-glow);
    }

    to {
        box-shadow: 0 0 30px var(--primary), 0 0 40px var(--primary);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--neon-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 80px;
    /* Ajuste do gradiente de fundo para ser mais sutil e alinhado */
    background: radial-gradient(ellipse at center, rgba(160, 0, 96, 0.1) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    position: relative;
    z-index: 10;
}

.hero-logo {
    margin-bottom: 3rem;
    position: relative;
}

.hero-logo-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 50px var(--neon-glow);
}

.hero-logo-icon::before {
    content: url('../img/logoIcon.png');
    font-size: 50px;
    filter: drop-shadow(0 0 20px var(--primary));
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
}

.hero-logo-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 27px;
    z-index: -1;
    opacity: 0.5;
    animation: rotate 10s linear infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(2deg);
    }

    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(0, 229, 229, 0.5); /* Sombra ajustada */
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-light);
    border: 2px solid rgba(0, 229, 229, 0.3); /* Borda ajustada */
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    opacity: 0.1;
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 229, 229, 0.2); /* Sombra ajustada */
}

/* Features Section */
.features {
    padding: 150px 2rem;
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Reduzido minmax para melhor responsividade em telas menores */
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 229, 0.1); /* Borda ajustada */
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--neon-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 229, 229, 0.2); /* Sombra ajustada */
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    animation: iconGlow 3s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    from {
        box-shadow: 0 0 20px var(--neon-glow);
    }

    to {
        box-shadow: 0 0 40px var(--primary);
    }
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Stats Section */
.stats {
    background: var(--bg-darker);
    padding: 100px 2rem;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(96, 32, 160, 0.1) 0%, transparent 50%), /* Cores ajustadas */
        radial-gradient(circle at 80% 20%, rgba(160, 0, 96, 0.1) 0%, transparent 50%); /* Cores ajustadas */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduzido minmax para melhor responsividade */
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 229, 0.1); /* Borda ajustada */
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 229, 229, 0.2); /* Sombra ajustada */
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* About Section */
.about {
    padding: 150px 2rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    text-align: center;
    position: relative;
}

.about h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about p {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-highlight {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 20px var(--neon-glow);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-darker) 0%, rgba(96, 32, 160, 0.2) 100%); /* Cores ajustadas */
    padding: 120px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, var(--neon-glow) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(160, 0, 96, 0.1) 0%, transparent 50%); /* Cores ajustadas */
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-light), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(0, 229, 229, 0.1); /* Borda ajustada */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(0, 229, 229, 0.1); /* Borda ajustada */
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon::before {
    content: url('../img/logoIcon.png');
    font-size: 16px;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Coluna única para mobile */
        gap: 1.5rem; /* Ajuste o espaçamento para telas menores */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas para telas menores que 768px */
        gap: 1.5rem; /* Ajuste o espaçamento */
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cursor,
    .cursor-trail,
    .mouse-light { /* Hide custom cursor elements on mobile */
        display: none;
    }

    /* Adicione mais ajustes específicos para mobile se necessário */
    .hero {
        padding-top: 80px; /* Reduzir padding superior para mobile */
    }

    .section-title {
        margin-bottom: 3rem; /* Reduzir margem inferior */
    }
}

/* Ajustes para telas muito pequenas, como 480px ou menos */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr; /* 1 coluna para telas muito pequenas */
    }

    .stat-item {
        padding: 1.5rem; /* Reduzir padding do item de estatística */
    }

    .hero h1 {
        font-size: 2.5rem; /* Ajuste para o título principal em telas muito pequenas */
    }

    .hero-tagline {
        font-size: 1rem; /* Ajuste para a tagline */
    }

    .hero p {
        font-size: 1rem; /* Ajuste para o texto do hero */
    }
}