/* Cyber Main Stylesheet */

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Cyber Footer Styles */
.cyber-footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    position: relative;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    padding: 0 1rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    background: var(--cyber-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer-brand h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--primary-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--cyber-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--cyber-glow);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-right: none;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
}

.newsletter-form button {
    background: var(--cyber-gradient);
    border: none;
    color: white;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

.cyber-terminal {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.terminal-output {
    color: var(--success-color);
    line-height: 1.8;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cyber-slogan {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-legal {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Animated Border */
.footer-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    overflow: hidden;
}

.border-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cyber-gradient);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.border-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20%;
}

.border-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    animation-delay: calc(var(--i) * 0.5s);
}

.border-dots span:nth-child(1) { --i: 1; }
.border-dots span:nth-child(2) { --i: 2; }
.border-dots span:nth-child(3) { --i: 3; }

/* Back to Top Button */
.cyber-back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--cyber-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-back-top.visible {
    opacity: 1;
    visibility: visible;
}

.cyber-back-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--cyber-glow);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Cyber Alert */
.cyber-alert {
    position: fixed;
    top: 100px;
    right: 2rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Roboto Mono', monospace;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.cyber-alert.success {
    border-left: 4px solid var(--success-color);
}

.cyber-alert.error {
    border-left: 4px solid var(--danger-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--cyber-gradient);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.3;
}

/* Cyber Glitch Effect */
.glitch-text {
    position: relative;
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    1% { transform: translate(-2px, 2px); }
    2% { transform: translate(2px, -1px); }
    3% { transform: translate(-1px, 1px); }
    4% { transform: translate(1px, -2px); }
    5% { transform: translate(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cyber-navbar .navbar-brand {
        font-size: 1.4rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cyber-back-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cyber-social {
        justify-content: center;
        margin-top: 1rem;
    }
}