/* Professional Footer Styles */
.professional-footer {
    background: linear-gradient(to bottom, #232f3e, #1a2332);
    color: #ffffff;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.professional-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff9900, transparent);
}

.footer-back-to-top {
    background: #37475a;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #3a4553;
}

.footer-back-to-top:hover {
    background: #485769;
}

.footer-back-to-top span {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-back-to-top i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.footer-back-to-top:hover i {
    transform: translateY(-2px);
}

.footer-main {
    padding: 40px 0;
    background: #232f3e;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9900, #ffb84d);
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-section h3 {
    color: #ff9900;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #ff9900, #ffb84d);
    border-radius: 2px;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cccccc;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    color: #ff9900;
    font-size: 16px;
}

.social-media {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-link:hover::before {
    transform: translateX(100%);
}

.social-link:hover {
    background: #ff9900;
    color: #232f3e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}

.social-link i {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    background: #1a2332;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #2a3749;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff9900;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-logo i {
    font-size: 28px;
    color: #ff9900;
}

.footer-copyright {
    color: #cccccc;
    font-size: 12px;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        padding: 25px 20px;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .social-media {
        gap: 12px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link i {
        font-size: 18px;
    }

    .footer-logo {
        font-size: 20px;
    }

    .footer-logo i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 30px 0;
    }

    .footer-section {
        padding: 20px 15px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .contact-item {
        font-size: 13px;
    }

    .social-media {
        gap: 10px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for social links */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 153, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0);
    }
}

.social-link:hover {
    animation: pulse 2s infinite;
}

/* برای اینکه فوتر همیشه پایین صفحه باشد */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.professional-footer {
    margin-top: auto;
}