/* FOOTER START */

footer {
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(180deg, #0A0A0A 0%, #050505 100%);
    color: #FFFFFF;
    margin-top: 100px;
    padding: 0;
    position: relative;
    direction: rtl;
    text-align: right;
    box-shadow: 0 -15px 40px rgba(255, 102, 0, 0.2), 0 -5px 15px rgba(255, 102, 0, 0.15);
    overflow: hidden;
    box-sizing: border-box;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.8), rgba(255, 133, 51, 0.6), transparent);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4), 0 0 40px rgba(255, 102, 0, 0.2);
}

.footer-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    width: 100%;
    direction: rtl;
    box-sizing: border-box;
}

/* Footer CTA Section */
.footer-cta-section {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.15) 0%, rgba(255, 133, 51, 0.1) 100%);
    padding: 50px 40px;
    margin-bottom: 0;
    position: relative;
    direction: rtl;
    text-align: center;
    border-bottom: 2px solid rgba(255, 102, 0, 0.3);
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.15), 0 2px 8px rgba(255, 102, 0, 0.1);
}

.footer-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 102, 0, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-cta-section > * {
    position: relative;
    z-index: 1;
}

.footer-cta-inner {
    text-align: center;
    direction: rtl;
}

.footer-cta-inner h2 {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: center;
    letter-spacing: -0.5px;
}

.footer-cta-inner p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    line-height: 1.5;
    text-align: center;
}

.footer-cta-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    direction: rtl;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    padding: 14px 28px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.footer-cta-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.footer-cta-btn-primary {
    background: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 35px rgba(255, 102, 0, 0.5);
}

.footer-cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-cta-btn-primary:hover::before {
    left: 100%;
}

.footer-cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 102, 0, 0.7);
    background: linear-gradient(135deg, #FF8533 0%, #FF6600 100%);
}

.footer-cta-btn-primary:hover i {
    transform: translateX(-3px);
}

.footer-cta-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-cta-btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
}

.footer-cta-btn-secondary:hover i {
    transform: translateX(-3px);
}

/* Footer Main Content */
.footer-main-content {
    padding: 50px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0A0A0A;
    direction: rtl;
    position: relative;
}

.footer-main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 102, 0, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-main-content > * {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr 1.2fr;
    gap: 30px 25px;
    direction: rtl;
}

.footer-col {
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
}

/* Column 1: Company */
.footer-col-company {
    gap: 20px;
}

/* Column Trust Badges */
.footer-col-trust {
    gap: 15px;
}

.footer-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    direction: rtl;
}

.footer-trust-badges img {
    max-width: 120px;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.footer-trust-badges img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.footer-logo-wrapper {
    margin: 0 0 20px 0;
    display: inline-block;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.footer-company-text {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-align: right;
    direction: rtl;
    letter-spacing: -0.2px;
}

/* Columns 2, 3, 4: Links */
.footer-col-title {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 102, 0, 0.4);
    text-align: right;
    direction: rtl;
    position: relative;
    display: inline-block;
    letter-spacing: -0.3px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #FF6600 0%, #FF8533 100%);
    border-radius: 2px;
}

.footer-col-title-small {
    border-bottom: 1px solid rgba(255, 102, 0, 0.3) !important;
    padding-bottom: 6px !important;
    margin-bottom: 10px !important;
}

.footer-col-title-small::after {
    width: 35px !important;
    height: 1.5px !important;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    direction: rtl;
    text-align: right;
}

.footer-menu li {
    margin: 0;
    text-align: right;
    direction: rtl;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    text-align: right;
    direction: rtl;
    padding: 3px 10px;
    margin: 0;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: -0.2px;
}

.footer-menu a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.15) 0%, rgba(255, 133, 51, 0.1) 100%);
    transition: width 0.3s ease;
    border-radius: 6px;
    z-index: 0;
}

.footer-menu a::after {
    content: '→';
    position: absolute;
    right: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #FF6600;
    font-weight: bold;
    z-index: 2;
}

.footer-menu a:hover {
    color: #FF6600;
    padding-right: 28px;
    transform: translateX(-3px);
}

.footer-menu a:hover::before {
    width: 100%;
}

.footer-menu a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    background: rgba(0, 0, 0, 0.5);
    border-top: 2px solid rgba(255, 102, 0, 0.2);
    padding: 25px 40px;
    direction: rtl;
    position: relative;
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-bottom-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.4), rgba(255, 133, 51, 0.3), transparent);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

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

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    direction: rtl;
}

.footer-bottom-left a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    direction: rtl;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
}

.footer-bottom-left a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 12px;
    left: 12px;
    height: 1px;
    background: #FF6600;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-bottom-left a:hover {
    color: #FF6600;
    background: rgba(255, 102, 0, 0.1);
}

.footer-bottom-left a:hover::before {
    transform: scaleX(1);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    direction: ltr;
}

.footer-bottom-right p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
}

.footer-social-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: ltr;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 102, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.footer-social-link:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.footer-social-link:hover {
    color: #FFFFFF;
    background: rgba(255, 102, 0, 0.3);
    border-color: rgba(255, 102, 0, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

.footer-social-link i {
    position: relative;
    z-index: 1;
}

/* Footer Dark Mode Toggle */
.footer-bottom-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    direction: ltr;
}

.footer-dark-mode-wrapper {
    display: none; /* Hidden on desktop */
}

.footer-dark-mode-toggle {
    position: relative;
    width: 60px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 102, 0, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-dark-mode-toggle:hover {
    border-color: rgba(255, 102, 0, 0.6);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transform: scale(1.05);
}

.footer-dark-mode-toggle:active {
    transform: scale(0.95);
}

.footer-dark-mode-toggle-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
}

.footer-dark-mode-icon {
    position: absolute;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-sun-icon {
    right: 6px;
    color: #FFD700;
    opacity: 1;
    transform: rotate(0deg) scale(1);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.footer-moon-icon {
    left: 6px;
    color: #E0E7FF;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    text-shadow: 0 0 8px rgba(224, 231, 255, 0.6);
}

/* Dark Mode Active State */
.footer-dark-mode-toggle.active {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    border-color: rgba(255, 102, 0, 0.5);
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.footer-dark-mode-toggle.active .footer-sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.footer-dark-mode-toggle.active .footer-moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #FFD700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.footer-dark-mode-toggle.active::before {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 102, 0, 0.3);
}

.footer-dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-dark-mode-toggle.active::before {
    right: 2px;
    left: auto;
    background: linear-gradient(135deg, #F8F9FA 0%, #E2E8F0 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 102, 0, 0.4);
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 1400px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 35px 25px;
    }
    
    .footer-col-company,
    .footer-col-trust {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
    }
    
    .footer-col-company {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
    
    .footer-col-company {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 768px) {
    .footer-cta-section {
        padding: 35px 25px;
    }
    
    .footer-cta-inner h2 {
        font-size: 24px;
    }
    
    .footer-cta-inner p {
        font-size: 14px;
    }
    
    .footer-cta-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-main-content {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 25px;
    }
    
    .footer-bottom-bar {
        padding: 18px 25px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-bottom-left {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-bottom-right {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .footer-bottom-right p {
        text-align: center;
    }
    
    /* Show dark mode toggle on mobile */
    .footer-dark-mode-wrapper {
        display: block;
    }
    
    .footer-bottom-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }
    
    .footer-social-bottom {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .footer-cta-section {
        padding: 35px 20px;
    }
    
    .footer-cta-inner h2 {
        font-size: 20px;
    }
    
    .footer-logo {
        max-width: 140px;
    }
    
    .footer-company-text {
        font-size: 13px;
    }
}

/* FOOTER END */
