/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--primary);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 0, 0.05), transparent);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--text);
    text-shadow: 0 0 10px var(--primary);
}

.footer-link:hover::after {
    width: 100%;
}

.validator-link {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--text);
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.validator-link:hover {
    background: var(--text);
    color: var(--background);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.open-source-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.open-source-note i {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-legal-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--primary);
}

.footer-legal-link:hover::after {
    width: 100%;
}

.footer-legal-links .separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

.footer-bottom p {
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    margin: 50px auto;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--primary);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group .cyber-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary);
    border-radius: 5px;
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group .cyber-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    border-color: var(--text);
}

.form-group textarea.cyber-input {
    resize: vertical;
    min-height: 120px;
}

.form-group .cyber-button {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group .cyber-button:hover {
    background: var(--primary);
    color: var(--background);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 1.5rem;
    }
}
