/* ========================================
   🦶 FOOTER SECTION
   ======================================== */

#footer  {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #ffffff;
    overflow: hidden;
    padding: 80px 0 0;
    margin-top: 100px;
}

/* ========================================
   ✨ Animated Background Orbs
   ======================================== */

#footer .footer-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

#footer .footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatOrb 20s infinite ease-in-out;
}

#footer .footer-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

#footer .footer-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #764ba2 0%, transparent 70%);
    bottom: -150px;
    left: 10%;
    animation-delay: 5s;
}

#footer .footer-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f093fb 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ========================================
   📦 Container & Layout
   ======================================== */

#footer .footer-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

#footer .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   🎯 Brand Column
   ======================================== */

#footer .footer-brand {
    padding-left: 40px;
}

#footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

#footer .footer-logo-img {
    width: auto;
    height: 45px;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

#footer .footer-logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#footer .footer-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* ========================================
   🔗 Social Links
   ======================================== */

#footer .footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#footer .social-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

/* ========================================
   📋 Footer Columns
   ======================================== */

#footer .footer-column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

#footer .footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ========================================
   🔗 Footer Links
   ======================================== */

#footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-links li {
    margin-bottom: 14px;
}

#footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

#footer .footer-links a i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

#footer .footer-links a:hover {
    color: #667eea;
    padding-right: 5px;
}

#footer .footer-links a:hover i {
    transform: translateX(-3px);
}

/* ========================================
   📞 Contact Info
   ======================================== */

#footer .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

#footer .footer-contact i {
    font-size: 16px;
    color: #667eea;
    margin-top: 2px;
    min-width: 16px;
}

#footer .footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .footer-contact a:hover {
    color: #667eea;
}

/* ========================================
   📧 Newsletter
   ======================================== */

#footer .footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

#footer .newsletter-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    line-height: 1.6;
}

#footer .newsletter-form {
    width: 100%;
}

#footer .newsletter-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#footer .newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn';
}

#footer .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#footer .newsletter-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#footer .newsletter-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#footer .newsletter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

#footer .newsletter-btn:active {
    transform: scale(0.95);
}

#footer .newsletter-message {
    font-size: 13px;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#footer .newsletter-message.show {
    opacity: 1;
}

#footer .newsletter-message.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

#footer .newsletter-message.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

/* ========================================
   📄 Footer Bottom
   ======================================== */

#footer .footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

#footer .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

#footer .footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

#footer .footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

#footer .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .footer-bottom-links a:hover {
    color: #667eea;
}

#footer .footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   ⬆️ Back to Top Button
   ======================================== */

#footer .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

#footer .back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#footer .back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

#footer .back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* ========================================
   📱 Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    #footer .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 40px;
    }
    
    #footer .footer-column:nth-child(3) {
        display: none;
    }
}

@media (max-width: 992px) {
    #footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    #footer .footer-brand {
        grid-column: 1 / -1;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    #footer  {
        padding: 60px 0 0;
        margin-top: 60px;
    }
    
    #footer .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
    
    #footer .footer-brand {
        grid-column: 1;
        text-align: center;
        padding-left: 0;
    }
    
    #footer .footer-logo {
        justify-content: center;
    }
    
    #footer .footer-social {
        justify-content: center;
    }
    
    #footer .footer-newsletter {
        padding: 25px;
    }
    
    #footer .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    #footer .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #footer .footer-container {
    }
    
    #footer .newsletter-input-group {
        flex-direction: column;
    }
    
    #footer .newsletter-btn {
        width: 100%;
        height: 48px;
    }
    
    #footer .footer-orb {
        filter: blur(60px);
    }
}
