@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary: #00f7ff;
    --secondary: #ff00e6;
    --dark: #0f0f1a;
    --light: #f0f0f0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glow {
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.7);
    position: relative;
    z-index: 5;
    width: 100%;
    overflow-wrap: break-word;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 247, 255, 0.3);
}

.neon-border {
    position: relative;
}

.neon-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(15, 15, 26, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 15, 26, 0.8) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

section {
    opacity: 1; /* Alterado de 0 para 1 para garantir que as seções sejam visíveis por padrão */
}

/* Seções que serão animadas pelo JavaScript */
section.animate-on-scroll {
    opacity: 1; /* Alterado de 0 para 1 para garantir que as seções sejam visíveis */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Estilo para links de navegação */
nav a {
    position: relative;
    overflow: hidden;
}

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

nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Estilo para formulários */
input:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(0, 247, 255, 0.5);
    outline: none;
}

/* Estilo para botões */
button, .button {
    position: relative;
    overflow: hidden;
}

button::before, .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.7s ease;
}

button:hover::before, .button:hover::before {
    left: 100%;
}

/* Estilos para certificados */
.certificate-card {
    transition: all 0.3s ease;
    opacity: 1;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 247, 255, 0.3);
}

/* Estilos para formulários de certificados */
#certificate-form input,
#certificate-form select,
#certificate-form textarea {
    transition: all 0.3s ease;
}

#certificate-form input:focus,
#certificate-form select:focus,
#certificate-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(0, 247, 255, 0.5);
    outline: none;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .grid-overlay {
        background-size: 20px 20px;
    }
    
    /* Ajuste para garantir que o texto não seja cortado em dispositivos móveis */
    section.py-16.md\:py-24 h2.gradient-text {
        word-break: break-word;
        hyphens: auto;
    }
}
