.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}
.alert-success {
  background-color: #d4edda;
  color: #155724;
}
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

:root {
    --primary-color: #00aaff;
    --secondary-color: #00d4ff;
    --background-dark: #0f0f23;
    --background-light: #1a1a2e;
    --text-color: #e0e0e0;
    --text-color-dark: #a0a0a0;
    --card-background: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

header,
footer {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s ease;
}

header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo svg {
    --gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.logo h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.importance-visual {
    flex: 1 1 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.importance-visual img {
    height: 100%;
    width: auto;
    max-height: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: block;
}

.importance-flex {
    align-items: stretch;
}

.importance-content, .importance-visual {
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

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

.language-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 0 16px;
}
.language-selector a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: #181a2a;
    color: #fff;
    text-decoration: none;
    border: 1px solid #00aaff;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.language-selector a.active,
.language-selector a:hover {
    background: #00aaff;
    color: #181a2a;
    border: 1px solid #00aaff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease-in-out;
}

main {
    padding-top: 80px; /* Header height */
}

section {
    padding: 6rem 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

section h3 {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #2c3e50;
    background: #ffffff;
    padding: 1rem 2rem;
    border-radius: 15px;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    min-height: calc(100vh - 80px);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.hero-content h2 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #2c3e50, #1a2a3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    color: #34495e;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-visual {
    background: #0a1633;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.4);
}

#how-it-works .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

#how-it-works .timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: -1;
}

.timeline-item {
    width: 50%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
}

.timeline-content {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    position: relative;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.timeline-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 0;
}

.timeline-content p {
    color: #34495e;
    font-size: 1rem;
    line-height: 1.6;
}

.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--background-light);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.timeline-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    display: block;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

#how-it-works .timeline::after {
    z-index: 1;
}

#features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: #00aaff;
    fill: none;
}

.feature-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 0;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 340px;
    text-align: left;
    transition: none;
}

.feature-card h4 {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #222;
}

.feature-card p {
    font-size: 1rem;
    color: #222;
    margin-top: 10px;
}

/* #national-importance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0;
    border-radius: 20px;
} */

.importance-visual img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.importance-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.importance-content {
    flex: 1 1 500px;
    max-width: 600px;
}

.importance-visual {
    flex: 1 1 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.importance-content h3 {
    color: #2c3e50;
    background: #ffffff;
    padding: 1rem 2rem;
    border-radius: 15px;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.importance-content p {
    color: #34495e;
}

#contact {
    text-align: center;
}

.contact-container {
    background: #ffffff;
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

#contact h3 {
    background: none;
    padding: 0;
    margin: 0 auto 1.5rem;
    text-align: center;
    width: 100%;
    color: #2c3e50;
    font-size: 2.8rem;
    font-weight: 700;
}

#contact p {
    color: #34495e;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    background: none;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

#contact input, #contact textarea {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #2c3e50;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

#contact input:focus, #contact textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
}

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

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-color-dark);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background-light);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 5%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero, #national-importance {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-content p, .importance-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .importance-content h3 {
        text-align: center;
    }

    .importance-visual {
        order: 2;
    }
    .importance-content {
        order: 1;
        margin-bottom: 3rem;
    }
    
    .contact-container {
        padding: 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    #how-it-works .timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }
    
    .timeline-icon,
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 0;
    }

    .timeline-content {
        text-align: center;
    }
    
    .contact-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    #contact h3 {
        font-size: 2.2rem;
    }
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.importance-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.importance-content {
    flex: 1 1 500px;
    max-width: 600px;
}

.importance-visual {
    flex: 1 1 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.importance-visual img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Estilos para a seção de Importância Nacional */
#national-importance .importance-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

/* Card de conteúdo à esquerda */
#national-importance .importance-content {
    flex: 1;
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    color: #34495e;
    border: 1px solid #e0e0e0;
}

/* Resetar o estilo do H3 dentro do card */
#national-importance .importance-content h3 {
    background: none;
    padding: 0;
    margin: 0 auto 1.5rem;
    text-align: center;
    width: 100%;
    color: #2c3e50;
    font-size: 2.8rem;
    font-weight: 700;
}

/* Container da imagem à direita */
#national-importance .importance-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#national-importance .importance-visual img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Remover estilos antigos e conflitantes que possam existir */
.importance-content {
    /* Esta regra genérica será sobreposta pela de cima, mais específica */
}
.importance-visual {
     /* Esta regra genérica será sobreposta pela de cima, mais específica */
} 