﻿/* Footer Styles */
.main-footer {
    position: relative;
    background: linear-gradient(135deg, #0a1929 0%, #071121 100%);
    color: #ffffff;
    padding: 80px 0 30px;
    overflow: hidden;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* Animated Background */
.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.footer-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 25s linear infinite;
}

.footer-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.2;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, #3b82f6, transparent);
    top: 20%;
    left: 10%;
    animation: orbFloatFooter 20s ease-in-out infinite;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 70% 30%, #8b5cf6, transparent);
    bottom: 30%;
    right: 15%;
    animation: orbFloatFooter 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 50% 50%, #10b981, transparent);
    top: 40%;
    right: 25%;
    animation: orbFloatFooter 30s ease-in-out infinite;
}

@keyframes orbFloatFooter {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.1);
    }

    50% {
        transform: translate(0, 20px) scale(0.9);
    }

    75% {
        transform: translate(-20px, -10px) scale(1.05);
    }
}

.footer-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    animation: circuitPulse 15s ease-in-out infinite;
}

/* Footer Content */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col {
    position: relative;
}

/* Footer Logo */
.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    width: 130px;
    height: 70px;
}

    .footer-logo-link:hover {
        background: rgba(59, 130, 246, 0.1);
        transform: translateY(-2px);
    }

.footer-logo-img {
    width: 100px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
    
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

    .footer-logo-text .logo-main {
        font-size: 1.8rem;
        font-weight: 800;
        background: linear-gradient(45deg, #3b82f6, #8b5cf6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .footer-logo-text .logo-sub {
        font-size: 0.8rem;
        color: #94a3b8;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

.footer-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.social-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    transition: left 0.5s;
}

.social-link:hover .social-glow {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Footer Titles */
.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background: linear-gradient(90deg, #3b82f6, #8b5cf6);
        border-radius: 2px;
    }

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

    .footer-link:hover {
        color: white;
        background: rgba(59, 130, 246, 0.1);
        transform: translateX(5px);
    }

    .footer-link i {
        color: #3b82f6;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .footer-link:hover i {
        transform: scale(1.2);
    }

/* Contact Info */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.contact-value {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Newsletter */
.newsletter {
    margin-top: 30px;
}

.newsletter-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .newsletter-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }

    .newsletter-input::placeholder {
        color: #64748b;
    }

.newsletter-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .newsletter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    }

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.legal-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

    .legal-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        background: #3b82f6;
        transition: width 0.3s ease;
    }

    .legal-link:hover {
        color: white;
    }

        .legal-link:hover::after {
            width: 100%;
        }

/* Floating Tech Elements */
.footer-tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tech-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: techElementFloat 8s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.element-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    color: #8b5cf6;
}

.element-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 4s;
    color: #10b981;
}

@keyframes techElementFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.6);
    }

    .back-to-top i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

.back-to-top-text {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Responsive Design */

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-logo-link {
        margin: 0 auto 20px;
        justify-content: center;
    }

    .footer-description {
        max-width: 450px;
        margin: 1rem auto;
        font-size: 0.9rem;
        opacity: 0.8;
    }

    .footer-social {
        justify-content: center;
        margin-top: 1.5rem;
    }

    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        text-align: left;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-link {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

   
    .contact-info {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(59, 130, 246, 0.1);
        border-radius: 20px;
        padding: 2rem 1.5rem;
        margin: 1rem auto;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-bottom: 1.5rem;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 1.5rem;
        border-top: 1px solid rgba(59, 130, 246, 0.1);
        padding-top: 2rem;
    }

    .footer-legal {
        display: flex;
        justify-content: center;
        gap: 1.2rem;
        font-size: 0.8rem;
    }

   
    .newsletter-form {
        flex-direction: column;
        align-items: center;
        max-width: 300px;
        margin: 1.5rem auto 0;
    }

    .newsletter-input {
        width: 100%;
        height: 50px;
        text-align: center;
    }

    .newsletter-btn {
        width: 100%;
        height: 50px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 60px 0 20px;
    }

    .footer-title {
        text-align: center;
    }

        .footer-title::after {
            left: 50%;
            transform: translateX(-50%);
        }

 
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-link {
        justify-content: center;
    }

       .tech-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Particle Animation */
.footer-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

    .footer-particles::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 2px, transparent 3px), radial-gradient(circle at 60% 20%, rgba(139, 92, 246, 0.1) 2px, transparent 3px), radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.1) 2px, transparent 3px);
        background-size: 200px 200px;
        animation: particlesMove 20s linear infinite;
    }

@keyframes particlesMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200px 200px;
    }
}
