/*
* New Vision Footer Styles (English)
* Version: 2.1
* Description: A professional, modern, and luxurious footer design for a global tech company.
*/

:root {
    /* New Vision Brand Colors */
    --brand-primary: #0d2d68;
    --brand-success: #11a976;
    --brand-info: #2473be;
    --brand-accent: #00e5fa;
    --brand-dark: #0a0a0c;
    
    /* Footer specific colors */
    --footer-primary-accent: var(--brand-primary);
    --footer-secondary-accent: var(--brand-accent);
    --footer-text-light: #222b3a;
    --footer-text-white: #ffffff;
    --footer-bg-darker: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
}

/* Main Footer Container */
.site-footer {
    background: var(--footer-bg-darker);
    color: #fff;
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
    padding: 80px 0 40px;
    line-height: 1.8;
    box-sizing: border-box;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: auto;
    left: auto;
    right: auto;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--brand-dark);
    z-index: -1;
}

.site-footer:not(.dynamic-footer),
.site-footer.footer-full-width {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.site-footer .footer-container {
    width: 98%;
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    margin-right: 40px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 1rem;
    color: #ffffff;
}

.footer-nav {
    display: flex;
    flex: 2;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1 1 0%;
    min-width: 180px;
}

.footer-col.contact-col {
    flex: 2 2 0%;
    min-width: 360px;
    grid-column: span 2;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--brand-info);
    margin-top: 10px;
}

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

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

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: #222b3a;
    padding-left: 5px;
}

.footer-contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact-details i {
    color: var(--brand-info);
    font-size: 1.1rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.footer-contact-details span {
    font-size: 0.95rem;
    color: #fff;
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.footer-social a:hover {
    color: var(--brand-primary);
    background: #fff;
    border-color: #fff;
}

.footer-bottom-bar {
    background-color: var(--footer-bg-darker);
    padding: 10px 0;
    margin-top: 30px;
    text-align: center;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
}

.site-footer .footer-grid .widget-title,
.site-footer .footer-grid .footer-menu li a,
.site-footer .footer-grid .contact-info li span {
    color: var(--footer-text-white);
}

.site-footer .footer-grid .footer-menu li a {
    opacity: 0.9;
}

.site-footer .footer-grid .footer-menu li a:hover {
    opacity: 1;
}

.site-footer .contact-list li,
.site-footer .contact-list li span,
.site-footer .contact-list li i,
.site-footer .contact-list li .phone-ltr {
    color: #fff !important;
    opacity: 1 !important;
}

.site-footer .contact-list li .phone-ltr {
    direction: ltr;
    font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;
}

.site-footer .contact-list li i,
.site-footer .contact-list li .lucide {
    color: #fff !important;
    font-size: 18px;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    opacity: 1;
    transition: color 0.2s;
}

.site-footer .contact-list li {
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer .contact-list li span,
.site-footer .contact-list li .phone-ltr {
    color: #fff !important;
    opacity: 1 !important;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .footer-col.contact-col {
        min-width: 0;
        flex: 1 1 100%;
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .footer-nav {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-heading::after {
        margin: 10px auto 0;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-contact-details li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 40px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        text-align: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .footer-menu li a:hover {
        padding-left: 0;
    }

    .footer-menu li a:hover::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .site-footer .footer-widget-area {
        text-align: left;
    }

    .site-footer .widget-title::after {
        left: 0;
        transform: none;
    }

    .site-footer .contact-info li {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas:
            "about about"
            "links services"
            "contact contact";
        gap: 20px;
        text-align: left;
    }

    .site-footer .footer-about {
        grid-area: about;
    }

    .site-footer .footer-grid > .footer-widget-area:nth-of-type(2) {
        grid-area: links;
    }

    .site-footer .footer-grid > .footer-widget-area:nth-of-type(3) {
        grid-area: services;
    }

    .site-footer .footer-grid > .footer-widget-area:nth-of-type(4) {
        grid-area: contact;
    }
}

@media (max-width: 768px) {
    .site-footer .cta-content h2 {
        font-size: 2rem;
    }

    .site-footer .cta-content p {
        font-size: 1.05rem;
    }
}

.footer-en {
    direction: ltr;
    text-align: left;
    font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;
}

.footer-en .footer-widget-area,
.footer-en .footer-menu a,
.footer-en .contact-info li,
.footer-en .contact-info li span,
.footer-en .site-description,
.footer-en .social-links a,
.footer-en .footer-bottom-bar,
.footer-en .copyright p {
    font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;
}

.footer-en .footer-menu a,
.footer-en .contact-info li span,
.footer-en .site-description {
    font-weight: 500;
}

.footer-en .widget-title,
.footer-en .site-title a {
    font-weight: 700;
}

/* ========================================
   New Footer Design Styles
   ======================================== */

/* Decorative Wave */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    line-height: 0;
    transform: translateY(-99%);
}

.footer-wave svg {
    width: 100%;
    height: 120px;
    display: block;
}

/* Brand Section with Social Icons */
.footer-brand {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.footer-logo {
    max-width: 180px;
    height: auto;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

/* Social Icons in Brand Section */
.footer-social-primary {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-primary .social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-info));
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-social-primary .social-icon:hover {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-success));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 229, 250, 0.4);
}

/* Enhanced Heading Styles */
.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-success));
    position: absolute;
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}

.footer-heading .heading-icon {
    color: var(--brand-accent);
    font-size: 1.2rem;
}

/* Enhanced Links with Icons */
.footer-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-links li a i {
    color: var(--brand-accent);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: var(--brand-accent);
    padding-left: 8px;
}

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

/* Newsletter Section */
.footer-newsletter {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-dark);
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(10, 10, 12, 0.5);
}

.newsletter-form button {
    padding: 12px 20px;
    border: none;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-success));
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(90deg, var(--brand-success), var(--brand-accent));
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    width: 100%;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
}

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

.footer-legal a:hover {
    color: var(--brand-accent);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Trust Badges */
.footer-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-badges .badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.footer-badges .badge i {
    color: var(--brand-accent);
    font-size: 1rem;
}

.footer-badges .badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--brand-accent);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-info));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-success));
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 229, 250, 0.4);
}

/* Responsive Design */
@media (max-width: 991px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-wave {
        top: -40px;
    }

    .footer-wave svg {
        height: 80px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand,
    .footer-col {
        min-width: 100%;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social-primary {
        justify-content: center;
    }

    .footer-links li a {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   Notification System for Newsletter
   ======================================== */

.footer-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.footer-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.footer-notification span {
    flex: 1;
    font-size: 0.95rem;
    color: var(--brand-dark);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(10, 10, 12, 0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--brand-dark);
}

/* Notification Types */
.footer-notification-success {
    border-left: 4px solid var(--brand-success);
}

.footer-notification-success::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-success);
    font-size: 1.3rem;
}

.footer-notification-error {
    border-left: 4px solid #e74c3c;
}

.footer-notification-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #e74c3c;
    font-size: 1.3rem;
}

.footer-notification-info {
    border-left: 4px solid var(--brand-info);
}

.footer-notification-info::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-info);
    font-size: 1.3rem;
}

/* Mobile Notification */
@media (max-width: 768px) {
    .footer-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
