/* ==========================================================================
   INOVA Energy - Footer Section Ultimate Creative Redesign
   Modern, Creative, Optimized Footer with Advanced Visual Effects
   ========================================================================== */

/* Enhanced CSS Variables with Creative Design System */
:root {
    /* Brand Colors - Enhanced */
    --footer-primary: #016A6E;
    --footer-primary-light: #028A8F;
    --footer-primary-dark: #014A4E;
    --footer-accent: #F3BD01;
    --footer-accent-light: #FFD700;
    --footer-accent-dark: #E6A800;
    --footer-white: #FFFFFF;
    --footer-light: #f8fffe;
    --footer-dark: #0a1a1a;
    --footer-gray: #2a3a3a;
    --footer-gray-light: #3a4a4a;
    
    /* Creative Background Gradients */
    --footer-cosmic-bg: linear-gradient(135deg, 
        rgba(10, 26, 26, 0.98) 0%, 
        rgba(1, 106, 110, 0.95) 15%, 
        rgba(15, 35, 35, 0.97) 30%,
        rgba(1, 106, 110, 0.92) 45%, 
        rgba(20, 40, 40, 0.95) 60%,
        rgba(1, 106, 110, 0.90) 75%,
        rgba(10, 26, 26, 0.98) 100%
    );
    --footer-glass: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(1, 106, 110, 0.20) 30%,
        rgba(255, 255, 255, 0.10) 70%,
        rgba(1, 106, 110, 0.15) 100%
    );
    --footer-hero-gradient: linear-gradient(135deg, 
        var(--footer-primary) 0%, 
        var(--footer-accent) 50%, 
        var(--footer-primary) 100%
    );
    --footer-gradient-overlay: linear-gradient(180deg,
        rgba(1, 106, 110, 0.15) 0%,
        rgba(243, 189, 1, 0.08) 25%,
        rgba(1, 106, 110, 0.12) 50%,
        rgba(243, 189, 1, 0.06) 75%,
        rgba(1, 106, 110, 0.15) 100%
    );
    
    /* Typography - IRANSansWeb Font Family */
    --footer-font-primary: 'IRANSansWeb', 'Vazirmatn', system-ui, sans-serif;
    --footer-font-elegant: 'IRANSansWeb', 'Vazirmatn', serif;
    --footer-font-display: 'IRANSansWeb', 'Vazirmatn', sans-serif;
    
    /* Font Weights */
    --footer-font-ultralight: 100;
    --footer-font-light: 300;
    --footer-font-regular: 400;
    --footer-font-medium: 500;
    --footer-font-bold: 700;
    --footer-font-black: 900;
    
    /* Advanced Shadows & Effects */
    --footer-shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.08);
    --footer-shadow-medium: 0 4px 30px rgba(0, 0, 0, 0.12);
    --footer-shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.15);
    --footer-shadow-glow: 0 0 25px rgba(1, 106, 110, 0.25);
    --footer-shadow-accent: 0 0 20px rgba(243, 189, 1, 0.2);
    
    /* Modern Animations */
    --footer-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --footer-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --footer-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --footer-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Spacing System */
    --footer-space-xs: 0.5rem;
    --footer-space-sm: 1rem;
    --footer-space-md: 1.5rem;
    --footer-space-lg: 2rem;
    --footer-space-xl: 3rem;
    
    /* Border Radius */
    --footer-radius-sm: 8px;
    --footer-radius-md: 12px;
    --footer-radius-lg: 16px;
    --footer-radius-xl: 20px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer Container - Enhanced with Creative Background - Full Width */
.site-footer {
    position: relative;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    background: var(--footer-cosmic-bg);
    color: var(--footer-white);
    overflow: hidden;
    border-top: 3px solid var(--footer-accent);
    padding: var(--footer-space-xl) 0 var(--footer-space-md);
    font-family: var(--footer-font-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Creative Background System */
.footer-cosmic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Enhanced Gradient Overlay */
.footer-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--footer-gradient-overlay);
    opacity: 0.7;
    animation: gradientShift 12s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1) rotate(0deg);
    }
    25% { 
        opacity: 0.9; 
        transform: scale(1.02) rotate(0.5deg);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.01) rotate(-0.3deg);
    }
    75% { 
        opacity: 0.85; 
        transform: scale(1.03) rotate(0.2deg);
    }
}

/* Creative Animated Stars */
.footer-star {
    position: absolute;
    background: var(--footer-accent);
    border-radius: 50%;
    animation: starTwinkle 6s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--footer-accent));
    will-change: transform, opacity;
}

.footer-star[data-star="1"] {
    width: 4px;
    height: 4px;
    top: 15%;
    left: 12%;
    animation-delay: 0s;
}

.footer-star[data-star="2"] {
    width: 3px;
    height: 3px;
    top: 25%;
    right: 18%;
    animation-delay: -2s;
}

.footer-star[data-star="3"] {
    width: 5px;
    height: 5px;
    top: 70%;
    left: 25%;
    animation-delay: -4s;
}

.footer-star[data-star="4"] {
    width: 3.5px;
    height: 3.5px;
    bottom: 35%;
    right: 30%;
    animation-delay: -1.5s;
}

.footer-star[data-star="5"] {
    width: 4px;
    height: 4px;
    bottom: 15%;
    left: 70%;
    animation-delay: -3s;
}

@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        opacity: 0.8; 
        transform: scale(1.3) rotate(90deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.6) rotate(180deg); 
    }
    75% { 
        opacity: 0.6; 
        transform: scale(1.2) rotate(270deg); 
    }
}

/* Enhanced Flowing Lines */
.footer-flow-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--footer-primary) 20%,
        var(--footer-accent) 40%,
        var(--footer-primary) 60%,
        var(--footer-accent) 80%, 
        transparent 100%
    );
    opacity: 0.6;
    animation: flowLine 10s linear infinite;
    will-change: transform;
}

.footer-flow-line[data-line="1"] {
    width: 250px;
    top: 30%;
    left: -250px;
    animation-delay: 0s;
}

.footer-flow-line[data-line="2"] {
    width: 300px;
    top: 60%;
    left: -300px;
    animation-delay: -5s;
}

.footer-flow-line[data-line="3"] {
    width: 220px;
    bottom: 40%;
    left: -220px;
    animation-delay: -10s;
}

@keyframes flowLine {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 400px)); }
}

/* Creative Geometric Patterns */
.footer-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--footer-primary) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, var(--footer-accent) 1.5px, transparent 1.5px),
        radial-gradient(circle at 50% 10%, var(--footer-primary) 1px, transparent 1px),
        radial-gradient(circle at 30% 70%, var(--footer-accent) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, var(--footer-primary) 0.5px, transparent 0.5px);
    background-size: 100px 100px, 80px 80px, 60px 60px, 40px 40px, 20px 20px;
    animation: patternDrift 25s linear infinite;
    will-change: transform;
}

@keyframes patternDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 80px); }
}

/* Main Container - Enhanced Full Width */
.footer-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Enhanced Footer Top Grid - Full Width */
.footer-top {
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    padding: var(--footer-space-xl) 0;
    margin: 0;
    position: relative;
}

.footer-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--footer-space-lg);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--footer-space-xl);
    align-items: start;
    justify-content: space-between;
}

/* Enhanced Company Section */
.footer-company {
    position: relative;
}

.footer-logo-container {
    margin-bottom: var(--footer-space-md);
    position: relative;
}

.footer-logo {
    width: 180px;
    height: auto;
    filter: brightness(1.05) drop-shadow(0 3px 12px rgba(1, 106, 110, 0.25));
    transition: var(--footer-transition);
    border-radius: var(--footer-radius-sm);
}

.footer-logo:hover {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1) drop-shadow(0 6px 20px rgba(1, 106, 110, 0.35));
}

.footer-tagline {
    font-family: var(--footer-font-elegant);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--footer-accent);
    margin-bottom: var(--footer-space-sm);
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-description {
    font-family: var(--footer-font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--footer-space-lg);
    font-weight: var(--footer-font-regular);
    text-align: justify;
}

/* Enhanced Social Links */
.footer-social {
    display: flex;
    gap: var(--footer-space-sm);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--footer-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--footer-radius-lg);
    color: var(--footer-white);
    text-decoration: none;
    transition: var(--footer-transition);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--footer-hero-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--footer-radius-lg);
}

.social-link:hover::before {
    opacity: 0.2;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.08);
    border-color: var(--footer-accent);
    box-shadow: 
        var(--footer-shadow-glow),
        0 8px 25px rgba(243, 189, 1, 0.25);
}

.social-link i {
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.social-link:hover i {
    color: var(--footer-accent);
    transform: scale(1.1);
}

/* Language Switcher Section - Completely Redesigned */
.footer-language-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
}

.footer-language-section h3 {
    font-family: var(--footer-font-elegant);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--footer-white);
    margin-bottom: var(--footer-space-lg);
    position: relative;
    padding-bottom: var(--footer-space-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.footer-language-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--footer-hero-gradient);
    border-radius: 2px;
    animation: titleUnderline 4s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 40px; }
    50% { width: 60px; }
}

/* Language Switcher Container - Centered */
.language-switcher-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Language Switcher Button - Enhanced Circular */
.language-switcher-btn {
    width: 100%;
    background: var(--footer-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--footer-radius-xl);
    padding: var(--footer-space-md);
    color: var(--footer-white);
    cursor: pointer;
    transition: var(--footer-transition);
    display: flex;
    align-items: center;
    gap: var(--footer-space-sm);
    position: relative;
    overflow: hidden;
    box-shadow: var(--footer-shadow-soft);
}

/* Circular Language Switcher Button */
.language-switcher-btn.circular {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 0;
    background: var(--footer-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        var(--footer-shadow-medium),
        0 0 25px rgba(1, 106, 110, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--footer-transition);
    position: relative;
}

.language-switcher-btn.circular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(243, 189, 1, 0.1) 50%, 
        transparent 70%
    );
    animation: buttonShimmer 6s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes buttonShimmer {
    0%, 100% { transform: rotate(0deg); opacity: 0.3; }
    50% { transform: rotate(180deg); opacity: 0.6; }
}

.language-switcher-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(1, 106, 110, 0.3);
    box-shadow: 
        var(--footer-shadow-medium),
        var(--footer-shadow-glow);
}

.language-switcher-btn.circular:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(243, 189, 1, 0.5);
    box-shadow: 
        var(--footer-shadow-heavy),
        0 0 35px rgba(243, 189, 1, 0.5),
        0 0 25px rgba(1, 106, 110, 0.4);
}

.language-switcher-btn:focus {
    outline: none;
    border-color: var(--footer-accent);
    box-shadow: 
        var(--footer-shadow-medium),
        0 0 0 3px rgba(243, 189, 1, 0.2);
}

/* Language Flag - Enhanced with Real Flags */
.language-flag {
    width: 40px;
    height: 40px;
    background: var(--footer-hero-gradient);
    border-radius: var(--footer-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(1, 106, 110, 0.3);
    transition: var(--footer-transition);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Circular Language Flag */
.language-switcher-btn.circular .language-flag {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.flag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--footer-radius-sm);
    transition: var(--footer-transition);
}

.language-switcher-btn.circular .flag-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.language-switcher-btn.circular:hover .language-flag {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(243, 189, 1, 0.5);
}

.language-switcher-btn.circular:hover .flag-image {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

/* Enhanced Footer Bottom - Full Width */
.footer-bottom {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: var(--footer-space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-bottom-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--footer-space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--footer-hero-gradient);
    opacity: 0.5;
}

.footer-copyright {
    font-family: var(--footer-font-primary);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--footer-font-regular);
}

.footer-links {
    display: flex;
    gap: var(--footer-space-md);
}

.footer-links a {
    font-family: var(--footer-font-primary);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: var(--footer-font-medium);
    transition: var(--footer-transition);
    position: relative;
    padding: var(--footer-space-xs) 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--footer-hero-gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.footer-links a:hover {
    color: var(--footer-accent);
    transform: translateY(-1px);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Enhanced Back to Top Button - Completely Floating */
.back-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #016A6E 0%, #028A8E 100%);
    border: 2px solid #F3BD01;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 9999 !important;
    box-shadow: 
        0 4px 20px rgba(1, 106, 110, 0.3),
        0 2px 10px rgba(243, 189, 1, 0.2);
    backdrop-filter: blur(10px);
    will-change: transform, opacity, visibility;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    float: none !important;
    clear: none !important;
}

/* Show button when visible class is added */
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover effects */
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(1, 106, 110, 0.4),
        0 4px 15px rgba(243, 189, 1, 0.3);
    background: linear-gradient(135deg, #028A8E 0%, #016A6E 100%);
}

.back-to-top:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 20px rgba(1, 106, 110, 0.3),
        0 2px 10px rgba(243, 189, 1, 0.2);
}

/* Icon styling */
.back-to-top-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.back-to-top:hover .back-to-top-icon {
    transform: translateY(-1px);
}

/* Text styling */
.back-to-top-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    line-height: 1;
}

.back-to-top:hover .back-to-top-text {
    transform: translateY(-1px);
}

/* Responsive adjustments for Back to Top button */
@media (max-width: 768px) {
    .back-to-top {
        width: 55px !important;
        height: 55px !important;
        bottom: 25px !important;
        right: 25px !important;
    }
    
    .back-to-top-icon {
        width: 18px;
        height: 18px;
    }
    
    .back-to-top-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .back-to-top-icon {
        width: 16px;
        height: 16px;
    }
    
    .back-to-top-text {
        font-size: 0.6rem;
    }
}


/* Enhanced Responsive Design - Full Width */
@media (max-width: 1400px) {
    .footer-content-wrapper,
    .footer-bottom-wrapper {
        max-width: 1200px;
        padding: 0 var(--footer-space-md);
    }
    
    .footer-content-wrapper {
        gap: var(--footer-space-lg);
    }
}

@media (max-width: 1200px) {
    .footer-content-wrapper,
    .footer-bottom-wrapper {
        max-width: 1000px;
        padding: 0 var(--footer-space-md);
    }
    
    .footer-content-wrapper {
        grid-template-columns: 2fr 1fr;
        gap: var(--footer-space-lg);
    }
    
    .language-switcher-container {
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .footer-content-wrapper,
    .footer-bottom-wrapper {
        max-width: 100%;
        padding: 0 var(--footer-space-md);
    }
    
    .footer-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--footer-space-lg);
        text-align: center;
    }
    
    .footer-logo {
        width: 160px;
        margin: 0 auto;
        display: block;
    }
    
    .footer-language-section {
        min-height: auto;
        margin-top: var(--footer-space-md);
    }
    
    .language-switcher-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Footer Bottom Responsive for Tablet */
    .footer-bottom-wrapper {
        flex-direction: column;
        gap: var(--footer-space-md);
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--footer-space-sm);
        align-items: center;
    }
    
    .footer-links a {
        padding: var(--footer-space-xs) var(--footer-space-sm);
        text-align: center;
    }
}

/* Mobile Optimizations - Full Width */
@media (max-width: 768px) {
    .site-footer {
        padding: var(--footer-space-lg) 0 var(--footer-space-sm);
    }
    
    .footer-content-wrapper,
    .footer-bottom-wrapper {
        padding: 0 var(--footer-space-sm);
    }
    
    .footer-top {
        padding: var(--footer-space-lg) 0;
    }
    
    .footer-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--footer-space-lg);
        text-align: center;
    }
    
    .footer-company {
        order: 1;
        margin-bottom: var(--footer-space-md);
    }
    
    .footer-logo {
        width: 150px;
        margin: 0 auto;
        display: block;
    }
    
    .footer-tagline {
        font-size: 1.2rem;
    }
    
    .footer-description {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        gap: var(--footer-space-sm);
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
    
    .social-link i {
        font-size: 1.2rem;
    }
    
    .footer-language-section h3 {
        font-size: 1.2rem;
    }
    
    .language-switcher-container {
        max-width: 280px;
    }
    
    .language-switcher-btn.circular {
        width: 65px;
        height: 65px;
    }
    
    .language-switcher-btn.circular .flag-image {
        width: 45px;
        height: 45px;
    }
    
    .footer-bottom {
        padding: var(--footer-space-md) 0;
    }
    
    .footer-bottom-wrapper {
        flex-direction: column;
        gap: var(--footer-space-md);
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--footer-space-sm);
        align-items: center;
        width: 100%;
    }
    
    .footer-links a {
        padding: var(--footer-space-xs) var(--footer-space-sm);
        text-align: center;
        width: auto;
        display: inline-block;
    }
    
    .footer-copyright {
        text-align: center;
        margin-bottom: var(--footer-space-sm);
    }
    
    
    /* Hide decorative elements on mobile for performance */
    .footer-star,
    .footer-flow-line,
    .footer-pattern {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-content-wrapper,
    .footer-bottom-wrapper {
        padding: 0 var(--footer-space-xs);
    }
    
    .footer-top {
        padding: var(--footer-space-md) 0;
    }
    
    .footer-content-wrapper {
        gap: var(--footer-space-md);
    }
    
    .footer-logo {
        width: 130px;
    }
    
    .footer-tagline {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .social-link i {
        font-size: 1.1rem;
    }
    
    .footer-language-section h3 {
        font-size: 1.1rem;
    }
    
    .language-switcher-container {
        max-width: 260px;
    }
    
    .language-switcher-btn.circular {
        width: 60px;
        height: 60px;
    }
    
    .language-switcher-btn.circular .flag-image {
        width: 40px;
        height: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--footer-space-xs);
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-copyright {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: var(--footer-space-sm);
    }
    
    .footer-bottom {
        padding: var(--footer-space-sm) 0;
    }
    
    .footer-bottom-wrapper {
        flex-direction: column;
        gap: var(--footer-space-sm);
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--footer-space-xs);
        align-items: center;
        width: 100%;
    }
    
    .footer-links a {
        padding: var(--footer-space-xs);
        text-align: center;
        font-size: 0.9rem;
        width: auto;
        display: inline-block;
    }
    
}

/* RTL Support - Enhanced */
.rtl .footer-language-section h3::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.rtl .back-to-top {
    left: var(--footer-space-md);
    right: auto;
}

@media (max-width: 768px) {
    .rtl .footer-language-section h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .rtl .back-to-top {
        left: var(--footer-space-sm);
        right: auto;
    }
}

/* Performance Optimizations */
.social-link,
.language-switcher-btn,
.back-to-top,
.footer-star,
.footer-flow-line,
.footer-pattern {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.site-footer * {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .footer-star,
    .footer-flow-line,
    .footer-pattern,
    .footer-gradient-overlay,
    .language-switcher-btn::before,
    .footer-language-section h3::after,
    .back-to-top::before {
        animation: none;
    }
    
    .social-link,
    .language-switcher-btn,
    .back-to-top,
    .footer-logo,
    .footer-links a {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .site-footer {
        background: #000;
        border-top: 3px solid #fff;
    }
    
    .footer-glass {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid #fff;
    }
    
    .social-link,
    .language-switcher-btn {
        border: 2px solid #fff;
    }
}

/* Print Styles */
@media print {
    .site-footer {
        background: #fff;
        color: #000;
        border-top: 2px solid #000;
    }
    
    .footer-cosmic-bg,
    .back-to-top {
        display: none;
    }
    
    .footer-glass {
        background: #f5f5f5;
        border: 1px solid #ccc;
    }
}