/*==========================
    Footer Elegant Section
============================*/

.footer-elegant {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 30px;
}

/* Decorative Background */
.footer-decorative-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-gradient-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(180deg, rgba(222, 90, 86, 0.1) 0%, transparent 100%);
}

.footer-floating-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(222, 90, 86, 0.2), transparent);
    animation: dot-float 20s ease-in-out infinite;
}

.dot-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.dot-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 7s;
}

.dot-3 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes dot-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.6;
    }
}

.container {
    position: relative;
    z-index: 1;
}

/* Footer Main Content */
.footer-main-content {
    margin-bottom: 50px;
}

/* Footer Brand Section */
.footer-brand-section {
    margin-bottom: 30px;
}

.footer-logo-wrapper {
    margin-bottom: 25px;
}

.footer-logo-link {
    display: inline-block;
    transition: transform 0.4s ease;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    margin-bottom: 25px;
}

.footer-description p {
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* Footer Social Section */
.footer-social-section {
    margin-top: 30px;
}

.social-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-item {
    margin: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(222, 90, 86, 0.1);
    border: 2px solid rgba(222, 90, 86, 0.3);
    border-radius: 50%;
    color: #de5a56;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #de5a56, #c94843);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: #ffffff;
    border-color: #de5a56;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(222, 90, 86, 0.3);
}

/* Footer Links Section */
.footer-links-section {
    margin-bottom: 30px;
}

.footer-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.title-text {
    position: relative;
    z-index: 1;
}

.title-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #de5a56, #c94843);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.footer-links-section:hover .title-underline {
    width: 100%;
}

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

.menu-item {
    margin-bottom: 12px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.link-icon {
    display: flex;
    align-items: center;
    color: #de5a56;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-link:hover {
    color: #de5a56;
    padding-right: 10px;
}

.menu-link:hover .link-icon {
    transform: translateX(-5px);
}

/* Footer Contact Section */
.footer-contact-section {
    margin-bottom: 30px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon-wrapper {
    flex-shrink: 0;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #de5a56, #c94843);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(222, 90, 86, 0.3);
    transition: all 0.3s ease;
}

.contact-info-item:hover .info-icon {
    transform: scale(1.1) rotate(10deg);
}

.info-content {
    flex-grow: 1;
    padding-top: 5px;
}

.info-link {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 5px;
}

.info-link:hover {
    color: #de5a56;
}

.info-text {
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Footer Bottom Section */
.footer-bottom-section {
    margin-top: 50px;
    padding-top: 30px;
    position: relative;
}

.footer-copyright-wrapper {
    text-align: center;
    position: relative;
}

.copyright-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(222, 90, 86, 0.3), transparent);
    margin-bottom: 25px;
}

.copyright-text {
    color: #b0b0b0;
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.copyright-icon {
    color: #de5a56;
    font-size: 14px;
}

.rights-text {
    color: #d0d0d0;
}

.copyright-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: #de5a56;
    border-radius: 50%;
    animation: dot-blink 2s ease-in-out infinite;
}

.decoration-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.decoration-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dot-blink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Scroll to Top Button */
.scroll-to-top-elegant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #de5a56, #c94843);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(222, 90, 86, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.scroll-to-top-elegant.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-elegant:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(222, 90, 86, 0.5);
    background: linear-gradient(135deg, #c94843, #de5a56);
}

.scroll-to-top-elegant::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #de5a56;
    border-radius: 50%;
    animation: pulse-border 2s ease-out infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1199px) {
    .footer-elegant {
        padding-top: 70px;
    }

    .footer-floating-dot {
        opacity: 0.5;
    }
}

@media (max-width: 991px) {
    .footer-elegant {
        padding-top: 60px;
    }

    .footer-main-content {
        margin-bottom: 40px;
    }

    .footer-brand-section,
    .footer-links-section,
    .footer-contact-section {
        margin-bottom: 40px;
    }

    .footer-section-title {
        font-size: 18px;
    }

    .scroll-to-top-elegant {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 767px) {
    .footer-elegant {
        padding-top: 50px;
        padding-bottom: 20px;
    }

    .footer-logo-img {
        max-width: 150px;
    }

    .footer-description p {
        font-size: 14px;
    }

    .footer-social-list {
        gap: 10px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-section-title {
        font-size: 17px;
    }

    .menu-link,
    .info-link,
    .info-text {
        font-size: 14px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .copyright-text {
        font-size: 13px;
    }

    .footer-bottom-section {
        margin-top: 30px;
        padding-top: 20px;
    }

    .footer-floating-dot {
        opacity: 0.3;
    }
}

@media (max-width: 575px) {
    .footer-elegant {
        padding-top: 40px;
    }

    .footer-logo-img {
        max-width: 130px;
    }

    .footer-brand-section,
    .footer-links-section,
    .footer-contact-section {
        margin-bottom: 35px;
    }

    .social-title {
        font-size: 14px;
    }

    .footer-section-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .menu-link,
    .info-link {
        font-size: 13px;
    }

    .copyright-text {
        font-size: 12px;
        flex-direction: column;
        gap: 5px;
    }

    .scroll-to-top-elegant {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
}

/* RTL Support */
[dir="rtl"] .menu-link:hover {
    padding-right: 0;
    padding-left: 10px;
}

[dir="rtl"] .menu-link:hover .link-icon {
    transform: translateX(5px);
}

[dir="rtl"] .scroll-to-top-elegant {
    right: auto;
    left: 30px;
}

@media (max-width: 991px) {
    [dir="rtl"] .scroll-to-top-elegant {
        left: 20px;
    }
}

@media (max-width: 575px) {
    [dir="rtl"] .scroll-to-top-elegant {
        left: 15px;
    }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    .footer-elegant {
        background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    }

    .footer-description p,
    .info-link,
    .info-text,
    .menu-link {
        color: #c0c0c0;
    }
}

/* Print Styles */
@media print {
    .footer-decorative-bg,
    .scroll-to-top-elegant,
    .footer-social-section {
        display: none;
    }

    .footer-elegant {
        background: white;
        color: black;
        padding: 20px 0;
    }

    .footer-section-title,
    .social-title,
    .copyright-text {
        color: black;
    }

    .menu-link,
    .info-link,
    .info-text,
    .footer-description p {
        color: #333;
    }
}

/* Accessibility */
.menu-link:focus,
.info-link:focus,
.social-link:focus,
.scroll-to-top-elegant:focus {
    outline: 2px solid #de5a56;
    outline-offset: 3px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.footer-elegant.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
