/* Luxury Footer - Premium 20k Design */
.main-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid rgba(183, 150, 50, 0.2);
}

/* Luxury Background Pattern */
.main-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23b79632' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

/* Luxury Accent Line */
.main-footer:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b79632, transparent);
    z-index: 1;
}

/* Footer Container */
.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Content Layout */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Luxury Logo Section */
.footer-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Arabic Logo Styling - NEW */
.footer-logo .arabic-logo {
    direction: rtl;
    font-family: 'Tajawal', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    unicode-bidi: plaintext;
}

.footer-logo .arabic-logo span {
    margin-left: 0;
    margin-right: 0.3em;
    color: #b79632;
}

.footer-logo .arabic-logo:hover {
    transform: translateX(-5px);
}

.footer-logo a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #b79632, #d4af37);
    transition: width 0.3s ease;
}

.footer-logo a:hover::after {
    width: 100px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Luxury Social Links */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(183, 150, 50, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.footer-social a::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-social a:hover::before {
    left: 100%;
}

.footer-social a:hover {
    background: #b79632;
    border-color: #b79632;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(183, 150, 50, 0.3);
}

/* Footer Section Titles */
.footer-links h3,
.footer-contact h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #b79632;
}

/* Footer Links */
.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
    position: relative;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
    text-decoration: none;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b79632;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #b79632;
    padding-left: 20px;
}

.footer-links ul li a:hover::before {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 10px #b79632;
}

/* Footer Contact - Enhanced with hover effects */
.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(183, 150, 50, 0.2);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.footer-contact .contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(183, 150, 50, 0.15);
    border-color: rgba(183, 150, 50, 0.4);
}

/* Ensure hover effect works even with fade-in class */
.footer-contact .contact-item.fade-in:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(183, 150, 50, 0.15) !important;
    border-color: rgba(183, 150, 50, 0.4) !important;
}

.footer-contact .contact-item i {
    flex: 0 0 40px;
    height: 40px;
    background-color: #b79632;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

[dir="rtl"] .footer-contact .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

.footer-contact .contact-item:hover i {
    transform: scale(1.1);
    background-color: #d4af37;
}

.footer-contact .contact-item .contact-text {
    flex: 1;
}

.footer-contact .contact-item p,
.footer-contact .contact-item a {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .contact-item:hover p,
.footer-contact .contact-item:hover a {
    color: #ffffff;
}

.footer-contact .contact-item a:hover {
    color: #b79632;
}

/* Luxury Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    margin-top: 30px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(183, 150, 50, 0.1);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
}

.footer-info a {
    color: #b79632;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #ffffff;
}

/* Footer Bottom Links */
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b79632;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #b79632;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

.divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Luxury Decorative Elements */
.footer-decoration {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 150, 50, 0.1) 0%, rgba(183, 150, 50, 0) 70%);
    z-index: 1;
}

.footer-decoration-1 {
    top: -100px;
    right: -50px;
    width: 300px;
    height: 300px;
}

.footer-decoration-2 {
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
}

/* Enhanced Media Queries for Footer Responsive Design */

/* Mobile Portrait (max-width: 600px) */
@media (max-width: 600px) {
    .main-footer {
        padding: 40px 0 0;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-logo a {
        font-size: 24px;
        text-align: center;
        display: block;
        margin-bottom: 15px;
    }
    
    .footer-logo p {
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 15px;
        gap: 12px;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul {
        text-align: center;
    }
    
    .footer-links ul li {
        margin-bottom: 10px;
    }
    
    .footer-links ul li a {
        font-size: 14px;
        padding-left: 0;
        padding-bottom: 5px;
    }
    
    .footer-links ul li a::before {
        display: none;
    }
    
    .footer-links ul li a:hover {
        padding-left: 0;
        border-bottom: 1px solid #b79632;
    }
    
    .footer-contact .contact-item {
        margin-bottom: 12px;
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-contact .contact-item i {
        font-size: 18px;
        margin-right: 0;
        margin-bottom: 10px;
        width: 45px;
        height: 45px;
    }
    
    .footer-contact .contact-item p,
    .footer-contact .contact-item a {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        margin-top: 25px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-info p,
    .footer-bottom-links a {
        font-size: 12px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .divider {
        display: none;
    }
    
    .footer-decoration-1,
    .footer-decoration-2 {
        display: none;
    }
}

/* Mobile Landscape (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .main-footer {
        padding: 45px 0 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        margin-bottom: 35px;
    }
    
    .footer-logo {
        grid-column: span 2;
    }
    
    .footer-logo a {
        font-size: 26px;
        text-align: center;
        display: block;
        margin-bottom: 15px;
    }
    
    .footer-logo p {
        font-size: 15px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 18px;
        gap: 12px;
    }
    
    .footer-social a {
        width: 42px;
        height: 42px;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        font-size: 17px;
        margin-bottom: 18px;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul {
        text-align: center;
    }
    
    .footer-links ul li a {
        font-size: 15px;
        padding-left: 0;
        padding-bottom: 5px;
    }
    
    .footer-links ul li a::before {
        display: none;
    }
    
    .footer-links ul li a:hover {
        padding-left: 0;
        border-bottom: 1px solid #b79632;
    }
    
    .footer-contact .contact-item {
        margin-bottom: 15px;
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-contact .contact-item i {
        font-size: 18px;
        margin-right: 0;
        margin-bottom: 10px;
        width: 42px;
        height: 42px;
    }
    
    .footer-contact .contact-item p,
    .footer-contact .contact-item a {
        font-size: 15px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        margin-top: 25px;
    }
    
    .footer-bottom-container {
        gap: 15px;
    }
    
    .footer-info p,
    .footer-bottom-links a {
        font-size: 13px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .divider {
        display: none;
    }
    
    .footer-decoration-1 {
        top: -80px;
        right: -40px;
        width: 250px;
        height: 250px;
    }
    
    .footer-decoration-2 {
        bottom: -120px;
        left: -80px;
        width: 350px;
        height: 350px;
    }
}

/* Tablet Portrait (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .main-footer {
        padding: 50px 0 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        margin-bottom: 35px;
    }
    
    .footer-logo a {
        font-size: 27px;
    }
    
    .footer-logo p {
        font-size: 15px;
    }
    
    .footer-social {
        margin-top: 20px;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        font-size: 17px;
        margin-bottom: 18px;
    }
    
    .footer-links ul li a {
        font-size: 15px;
    }
    
    .footer-contact .contact-item p,
    .footer-contact .contact-item a {
        font-size: 15px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        margin-top: 25px;
    }
    
    .footer-bottom-container {
        gap: 15px;
    }
    
    .footer-info p,
    .footer-bottom-links a {
        font-size: 13px;
    }
    
    .footer-decoration-1 {
        top: -90px;
        right: -45px;
        width: 280px;
        height: 280px;
    }
    
    .footer-decoration-2 {
        bottom: -130px;
        left: -90px;
        width: 380px;
        height: 380px;
    }
}

/* Tablet Landscape and Small Desktop (993px - 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .main-footer {
        padding: 55px 0 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-logo a {
        font-size: 28px;
    }
    
    .footer-logo p {
        font-size: 16px;
    }
    
    .footer-social {
        margin-top: 20px;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-links ul li a {
        font-size: 15px;
    }
    
    .footer-contact .contact-item p,
    .footer-contact .contact-item a {
        font-size: 15px;
    }
    
    .footer-bottom {
        padding: 15px 0;
        margin-top: 30px;
    }
    
    .footer-bottom-container {
        gap: 15px;
    }
    
    .footer-info p,
    .footer-bottom-links a {
        font-size: 13px;
    }
}

/* Large Desktop (1201px and above) */
@media (min-width: 1201px) {
    /* These styles are already defined in the main CSS */
    /* No need to override unless specific adjustments needed */
}

/* Landscape-specific adjustments */
@media (max-width: 992px) and (orientation: landscape) {
    .main-footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-logo a {
        font-size: 22px;
    }
    
    .footer-logo p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer-social {
        margin-top: 15px;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-links ul li {
        margin-bottom: 8px;
    }
    
    .footer-links ul li a {
        font-size: 14px;
    }
    
    .footer-contact .contact-item {
        margin-bottom: 10px;
        padding: 12px;
    }
    
    .footer-contact .contact-item i {
        font-size: 14px;
        margin-right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .footer-contact .contact-item p,
    .footer-contact .contact-item a {
        font-size: 14px;
    }
    
    .footer-bottom {
        padding: 12px 0;
        margin-top: 20px;
    }
    
    .footer-bottom-container {
        gap: 10px;
    }
    
    .footer-info p,
    .footer-bottom-links a {
        font-size: 12px;
    }
}

/* High-resolution devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .footer-social a {
        border-width: 0.8px;
    }
    
    .footer-links ul li a::before {
        width: 5px;
        height: 5px;
    }
    
    .footer-links ul li a:hover::before {
        width: 8px;
        height: 8px;
    }
}

/* Print styles */
@media print {
    .main-footer {
        background: white !important;
        color: black !important;
        border-top: 1px solid #ccc !important;
    }
    
    .main-footer::before,
    .main-footer::after,
    .footer-decoration {
        display: none !important;
    }
    
    .footer-logo a,
    .footer-links h3,
    .footer-contact h3 {
        color: black !important;
    }
    
    .footer-links ul li a,
    .footer-contact .contact-item p,
    .footer-contact .contact-item a,
    .footer-info p,
    .footer-bottom-links a {
        color: black !important;
    }
    
    .footer-social a {
        border: 1px solid #ccc !important;
        color: black !important;
    }
}