/**
 * SUPER PROFESSIONAL FOOTER - PREMIUM DESIGN
 * Ultra Modern, Fully Responsive, Complete RTL Support
 * 
 * @package Urdu_Newsify
 * @version 5.0.0
 */

/* ========================================
   FOOTER BASE - PREMIUM DESIGN
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e4e4e4;
    font-size: 16px;
    line-height: 1.9;
    position: relative;
    overflow: hidden;
    font-family: 'Vazirmatn', sans-serif;
}

/* Animated Background Particles */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Decorative Top Border */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #4CAF50 0%, 
        #2196F3 25%, 
        #FFC107 50%, 
        #E91E63 75%, 
        #9C27B0 100%);
    animation: gradientSlide 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.site-footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.site-footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.site-footer a:hover {
    color: #66BB6A;
    transform: translateY(-2px);
}

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

/* ========================================
   FOOTER WIDGETS - ULTRA MODERN
   ======================================== */
.footer-widgets-area {
    padding: 30px 0 15px;
    position: relative;
    z-index: 2;
}

.footer-widgets-row {
    display: grid;
    gap: 60px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.footer-widget-column {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(40px);
}

.footer-widget-column:nth-child(1) { animation-delay: 0.1s; }
.footer-widget-column:nth-child(2) { animation-delay: 0.2s; }
.footer-widget-column:nth-child(3) { animation-delay: 0.3s; }
.footer-widget-column:nth-child(4) { animation-delay: 0.4s; }

/* Widget Base Styles */
.footer-widget {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-widget::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.footer-widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(76, 175, 80, 0.3);
}

.footer-widget:hover::before {
    opacity: 1;
}

/* Widget Title - Premium Design */
.footer-widget-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    padding-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.footer-widget-title::before {
    content: '';
    position: absolute;
    bottom: 0px;
    right: 80%;
    width: 20%;
    height: 4px;
    background: #4CAF50;
    border-radius: 2px;
    animation: titleDot 2s ease-in-out infinite;
}

@keyframes titleDot {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(-10px); opacity: 0.5; }
}

/* FOOTER ABOUT WIDGET */
.footer-about-widget {
    text-align: center;
}

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

.footer-about-logo img {
    max-width: 180px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

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

.footer-about-description p {
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* FOOTER CATEGORIES WIDGET */
.footer-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-categories-list li {
    padding: 14px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border-right: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-categories-list li::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px #4CAF50;
}

.footer-categories-list li:hover {
    background: rgba(76, 175, 80, 0.1);
    border-right-color: #4CAF50;
    padding-right: 35px;
}

.footer-categories-list li:hover::before {
    transform: translateY(-50%) scale(1);
}

.footer-categories-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 500;
}

.footer-categories-list .cat-icon {
    color: #4CAF50;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.footer-categories-list li:hover .cat-icon {
    transform: translateX(5px);
}

.footer-categories-list .cat-count {
    margin-right: auto;
    opacity: 0.7;
    font-size: 13px;
}

/* FOOTER MENU WIDGET */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    padding: 14px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border-right: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-menu-list li::before {
    content: '→';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    color: #4CAF50;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-menu-list li:hover {
    background: rgba(76, 175, 80, 0.1);
    border-right-color: #4CAF50;
    padding-right: 35px;
}

.footer-menu-list li:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.footer-menu-list li a {
    color: inherit;
    font-weight: 500;
    display: block;
}

/* Widget List Items - Modern Cards */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border-right: 3px solid transparent;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.footer-widget ul li::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px #4CAF50;
}

.footer-widget ul li:hover {
    background: rgba(76, 175, 80, 0.1);
    border-right-color: #4CAF50;
    padding-right: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-widget ul li:hover::before {
    transform: translateY(-50%) scale(1);
}

.footer-widget ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 20px;
}

.footer-widget ul li a::before {
    display: none;
}

/* ========================================
   NEWSLETTER - PROFESSIONAL DESIGN
   ======================================== */
.footer-newsletter {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

.newsletter-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.newsletter-content {
    position: relative;
}

.newsletter-content::before {
    content: '✉';
    position: absolute;
    top: -20px;
    right: -40px;
    font-size: 120px;
    opacity: 0.1;
    z-index: -1;
}

.newsletter-content h3 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 18px;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.newsletter-content p {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Professional Newsletter Form */
.newsletter-form form {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 60px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.newsletter-form form:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 20px 30px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

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

.newsletter-form button {
    padding: 20px 45px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    position: relative;
    overflow: hidden;
}

.newsletter-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.newsletter-form button:hover::before {
    width: 300px;
    height: 300px;
}

.newsletter-form button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.6);
}

.newsletter-form button:active {
    transform: translateY(-2px) scale(1.02);
}

/* Success/Error Messages */
.newsletter-message {
    margin-top: 15px;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.4s ease;
}

.newsletter-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #66BB6A;
}

.newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ff6b6b;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SOCIAL MEDIA - ULTRA MODERN
   ======================================== */
.footer-social {
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 0;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.4));
    color: #ffffff;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    border-radius: 50%;
}

.social-icon:hover::before {
    width: 200%;
    height: 200%;
}

.social-icon:hover {
    transform: translateY(-10px) scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Platform-Specific Colors */
.social-facebook:hover { 
    background: linear-gradient(135deg, #1877f2, #4267B2);
    border-color: #1877f2;
}

.social-twitter:hover { 
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    border-color: #1da1f2;
}

.social-instagram:hover { 
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

.social-youtube:hover { 
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
}

.social-linkedin:hover { 
    background: linear-gradient(135deg, #0077b5, #005885);
    border-color: #0077b5;
}

.social-pinterest:hover { 
    background: linear-gradient(135deg, #e60023, #bd001c);
    border-color: #e60023;
}

.social-telegram:hover { 
    background: linear-gradient(135deg, #0088cc, #006699);
    border-color: #0088cc;
}

.social-whatsapp:hover { 
    background: linear-gradient(135deg, #25d366, #1da851);
    border-color: #25d366;
}

/* ========================================
   FOOTER BOTTOM - ELEGANT
   ======================================== */
.footer-bottom {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    padding: 35px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-copyright {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 500;
}

.footer-menu {
    display: flex;
}

.footer-nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-nav-menu li {
    position: relative;
}

.footer-nav-menu li::before {
    content: '•';
    position: absolute;
    right: -18px;
    color: #4CAF50;
    font-size: 18px;
}

.footer-nav-menu li:first-child::after {
    display: none;
}

.footer-nav-menu a {
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-nav-menu a:hover {
    color: #66BB6A;
}

/* ========================================
   GO TO TOP - 5 UNIQUE PROFESSIONAL DESIGNS
   ======================================== */

/* Common Base Styles */
.goto-top-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    border: none;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.goto-top-btn.position-left {
    left: 35px;
    right: auto;
}

.goto-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.goto-top-btn svg,
.goto-top-btn i {
    width: 28px;
    height: 28px;
    font-size: 28px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

/* ===== DESIGN 1: CLASSIC ARROW WITH PULSE ===== */
.goto-top-style-1 {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-radius: 50%;
    box-shadow: 0 10px 35px rgba(76, 175, 80, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 35px rgba(76, 175, 80, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 15px 50px rgba(76, 175, 80, 0.7); }
}

.goto-top-style-1:hover {
    transform: translateY(-10px) scale(1.1);
    animation: none;
}

.goto-top-style-1:hover svg,
.goto-top-style-1:hover i {
    transform: translateY(-4px);
    animation: arrowBounce 0.6s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(-4px); }
    50% { transform: translateY(-8px); }
}

/* ===== DESIGN 2: ROCKET LAUNCH 🚀 ===== */
.goto-top-style-2 {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 30px 30px 15px 15px;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.6);
    position: fixed;
}

.goto-top-style-2::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #FF6B6B;
    opacity: 0.7;
}

.goto-top-style-2::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 40px;
    background: linear-gradient(180deg, #FFC107, transparent);
    border-radius: 50%;
    animation: rocketFlame 0.3s ease-in-out infinite alternate;
    opacity: 0;
}

.goto-top-style-2:hover::after {
    opacity: 1;
}

@keyframes rocketFlame {
    0% { height: 30px; }
    100% { height: 45px; }
}

.goto-top-style-2:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.8);
}

.goto-top-style-2 svg,
.goto-top-style-2 i {
    animation: rocketShake 0.5s ease-in-out infinite;
}

@keyframes rocketShake {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* ===== DESIGN 3: HEXAGON TECH ⬡ ===== */
.goto-top-style-3 {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 10px 40px rgba(33, 150, 243, 0.6);
    animation: hexagonRotate 10s linear infinite;
}

@keyframes hexagonRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.goto-top-style-3::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.goto-top-style-3:hover {
    transform: translateY(-10px) rotate(60deg) scale(1.1);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.9);
}

.goto-top-style-3 svg,
.goto-top-style-3 i {
    transform: rotate(-60deg);
    transition: transform 0.6s ease;
}

.goto-top-style-3:hover svg,
.goto-top-style-3:hover i {
    transform: rotate(0deg);
}

/* ===== DESIGN 4: NEON GLOW CIRCLE 💫 ===== */
.goto-top-style-4 {
    background: #000000;
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(233, 30, 99, 0.8),
        0 0 40px rgba(233, 30, 99, 0.6),
        0 0 60px rgba(233, 30, 99, 0.4),
        inset 0 0 30px rgba(233, 30, 99, 0.3);
    border: 3px solid #E91E63;
    animation: neonPulseGlow 1.5s ease-in-out infinite;
}

@keyframes neonPulseGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(233, 30, 99, 0.8),
            0 0 40px rgba(233, 30, 99, 0.6),
            0 0 60px rgba(233, 30, 99, 0.4);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(233, 30, 99, 1),
            0 0 80px rgba(233, 30, 99, 0.8),
            0 0 120px rgba(233, 30, 99, 0.6);
    }
}

.goto-top-style-4 svg,
.goto-top-style-4 i {
    color: #E91E63;
    filter: drop-shadow(0 0 10px #E91E63);
}

.goto-top-style-4:hover {
    transform: translateY(-10px) scale(1.15);
    background: #E91E63;
}

.goto-top-style-4:hover svg,
.goto-top-style-4:hover i {
    color: #ffffff;
    animation: neonSpin 0.6s ease-in-out;
}

@keyframes neonSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ===== DESIGN 5: DIAMOND SPARKLE 💎 ===== */
.goto-top-style-5 {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 10px 40px rgba(156, 39, 176, 0.6);
    position: fixed;
    animation: diamondFloat 3s ease-in-out infinite;
}

@keyframes diamondFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.goto-top-style-5::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #FF6B6B, #4CAF50, #2196F3, #FFC107);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: diamondRainbow 3s linear infinite;
    z-index: -1;
}

@keyframes diamondRainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.goto-top-style-5:hover::before {
    opacity: 1;
}

.goto-top-style-5:hover {
    transform: translateY(-15px) rotate(45deg) scale(1.2);
    box-shadow: 0 25px 70px rgba(156, 39, 176, 0.9);
    animation: none;
}

.goto-top-style-5 svg,
.goto-top-style-5 i {
    animation: diamondSparkle 1s ease-in-out infinite;
}

@keyframes diamondSparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */
@media (max-width: 1024px) {
    .footer-widgets-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .newsletter-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        font-size: 15px;
    }
    
    .footer-widgets-area {
        padding: 60px 0 40px;
    }
    
    .footer-widgets-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-widget {
        padding: 25px 20px;
    }
    
    .footer-widget-title {
        font-size: 20px;
    }
    
    .footer-newsletter {
        padding: 50px 0;
    }
    
    .newsletter-content h3 {
        font-size: 28px;
    }
    
    .newsletter-content p {
        font-size: 16px;
    }
    
    .newsletter-form form {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }
    
    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        border-radius: 15px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .footer-bottom {
        padding: 25px 0;
    }
    
    /* MOBILE: Social Above, Menu Below Copyright */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    /* Move menu below copyright on mobile */
    .footer-copyright {
        order: 1;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .footer-menu {
        order: 2;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-nav-menu {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-nav-menu li::after {
        display: none;
    }
    
    /* Social section stays above footer-bottom */
    .footer-social {
        order: 0;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .goto-top-btn {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
    }
    
    .goto-top-btn.position-left {
        left: 25px;
    }
}

/* ========================================
   RTL SUPPORT - COMPLETE
   ======================================== */
[dir="rtl"] .footer-widget ul li {
    border-right: none;
    border-left: 3px solid transparent;
}

[dir="rtl"] .footer-widget ul li::before {
    right: auto;
    left: 15px;
}

[dir="rtl"] .footer-widget ul li:hover {
    padding-right: 20px;
    padding-left: 35px;
    border-left-color: #4CAF50;
}

[dir="rtl"] .footer-widget-title::after {
    right: auto;
    left: 0;
}

[dir="rtl"] .footer-widget-title::before {
    right: auto;
    left: 85px;
}

[dir="rtl"] .newsletter-content::before {
    right: auto;
    left: -40px;
}

[dir="rtl"] .footer-nav-menu li::after {
    left: auto;
    right: -18px;
}

[dir="rtl"] .site-footer a:hover {
    transform: translateY(-2px) translateX(2px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .footer-newsletter,
    .footer-social,
    .goto-top-btn,
    .site-footer::before,
    .site-footer::after {
        display: none !important;
    }
    
    .site-footer {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* ========================================
   PROFESSIONAL FOOTER WIDGETS CSS
   ======================================== */

/* About Footer Widget */
.footer-about-widget {
    text-align: center;
}

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

.footer-about-logo img {
    max-width: 180px;
    height: auto;
    transition: transform 0.4s ease;
    filter: brightness(1.1);
}

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

.footer-about-description {
    margin-bottom: 25px;
    line-height: 1.8;
    opacity: 0.95;
}

.footer-about-description p {
    margin: 0;
}

.footer-about-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-social-mini {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 10px;
    color: #4CAF50;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.footer-social-mini:hover {
    background: #4CAF50;
    color: #ffffff;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* Category Footer Widget */
.footer-category-list {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-category-list li {
    padding: 14px 18px !important;
    margin-bottom: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
    border-right: 3px solid transparent !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.footer-category-list li::before {
    display: none !important;
}

.footer-category-list li:hover {
    background: rgba(76, 175, 80, 0.1) !important;
    border-right-color: #4CAF50 !important;
    padding-right: 25px !important;
}

.footer-category-list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: #e4e4e4 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
}

.footer-category-list li a::before {
    display: none !important;
}

.footer-category-list li a i {
    margin-left: 10px;
    color: #4CAF50;
    font-size: 14px;
}

.footer-category-list li a:hover {
    color: #4CAF50 !important;
}

.cat-count {
    background: rgba(76, 175, 80, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #66BB6A;
}

/* Menu Footer Widget */
.footer-menu-wrapper {
    position: relative;
}

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

.footer-menu-widget li {
    margin-bottom: 10px !important;
}

/* List Style */
.footer-menu-list li {
    padding: 14px 18px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
    border-right: 3px solid transparent !important;
    transition: all 0.3s ease !important;
}

.footer-menu-list li::before {
    content: '›' !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #4CAF50 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.footer-menu-list li:hover {
    background: rgba(76, 175, 80, 0.1) !important;
    border-right-color: #4CAF50 !important;
    padding-right: 40px !important;
}

.footer-menu-list li:hover::before {
    opacity: 1 !important;
    right: 25px !important;
}

.footer-menu-list li a {
    color: #e4e4e4 !important;
    font-weight: 500 !important;
    font-size: 19px !important;
    display: block !important;
}

.footer-menu-list li a::before {
    display: none !important;
}

/* Icon Style */
.footer-menu-icons li {
    padding: 14px 18px 14px 50px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 10px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.footer-menu-icons li::before {
    content: '\f0da' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(76, 175, 80, 0.2) !important;
    border-radius: 8px !important;
    color: #4CAF50 !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.footer-menu-icons li:hover {
    background: rgba(76, 175, 80, 0.1) !important;
    padding-right: 25px !important;
}

.footer-menu-icons li:hover::before {
    background: #4CAF50 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.footer-menu-icons li a {
    color: #e4e4e4 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    display: block !important;
}

.footer-menu-icons li a::before {
    display: none !important;
}

/* Button Style */
.footer-menu-buttons li {
    margin-bottom: 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.footer-menu-buttons li::before {
    display: none !important;
}

.footer-menu-buttons li a {
    display: block !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.3)) !important;
    border-radius: 10px !important;
    color: #4CAF50 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-align: center !important;
    border: 2px solid rgba(76, 175, 80, 0.3) !important;
    transition: all 0.3s ease !important;
}

.footer-menu-buttons li a::before {
    display: none !important;
}

.footer-menu-buttons li a:hover {
    background: linear-gradient(135deg, #4CAF50, #66BB6A) !important;
    color: #ffffff !important;
    border-color: #4CAF50 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4) !important;
}

/* ========================================
   MOBILE RESPONSIVE - PROFESSIONAL FIX
   ======================================== */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0 !important;
    }
    
    .footer-copyright {
        order: 2;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .footer-menu {
        order: 1;
        width: 100%;
    }
    
    .footer-nav-menu {
        flex-direction: row;
        gap: 12px !important;
        align-items: center;
    }
    
    .footer-nav-menu li::after {
        display: none !important;
    }
    
    .footer-nav-menu a {
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    .footer-nav-menu a:hover {
        background: rgba(76, 175, 80, 0.2);
    }
    
    /* Social Icons Below Menu on Mobile */
    .footer-social {
        order: 3;
        margin-top: -20px;
        padding: 30px 0 !important;
        border-top: none !important;
    }
    
    .footer-bottom {
        padding: 0 !important;
    }
    
    /* Adjust widget margins on mobile */
    .footer-about-widget,
    .footer-category-list,
    .footer-menu-wrapper {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 10px !important;
    }
    
    .social-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    .footer-nav-menu a {
        font-size: 14px;
        padding: 8px 16px;
    }
}
