/* =============================================
   CUSTOM FOOTER STYLES - REDESIGNED MOBILE
   ============================================= */

.footer-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    margin-top: auto;
}

/* Main Footer Content */
.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #007cba, #00a8e6);
    border-radius: 1px;
}

/* Company Column */
.footer-company {
    grid-column: span 1;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-height: 50px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 25px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #cccccc;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #00a8e6;
}

.contact-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Footer Menus */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-menu a:hover {
    color: #00a8e6;
    padding-left: 8px;
}

.footer-menu a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #00a8e6;
    transition: width 0.3s ease;
}

.footer-menu a:hover::before {
    width: 4px;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
}

.footer-bottom-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom-left {
    justify-self: start;
}

.footer-bottom-center {
    justify-self: center;
}

.footer-bottom-right {
    justify-self: end;
}

.footer-copyright {
    margin: 0;
    color: #999999;
    font-size: 0.9rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #007cba;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Legal Links */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #00a8e6;
}

.footer-legal .separator {
    color: #666666;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007cba, #00a8e6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-company {
        grid-column: span 2;
    }
}

/* REDESIGNED MOBILE LAYOUT */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: left;
    }
    
    /* Company section - top section with better layout */
    .footer-company {
        background: rgba(255, 255, 255, 0.03);
        padding: 25px;
        border-radius: 12px;
        margin-bottom: 30px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .contact-item {
        justify-content: center;
        flex-direction: column;
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        padding: 12px 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: center;
        gap: 6px;
    }
    
    .contact-item span {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .contact-item:hover {
        background: rgba(0, 168, 230, 0.1);
        transform: translateY(-1px);
    }
    
    /* Navigation sections in cards */
    .footer-links,
    .footer-categories,
    .footer-service {
        background: rgba(255, 255, 255, 0.02);
        padding: 20px;
        border-radius: 10px;
        margin-bottom: 20px;
        border-left: 3px solid #007cba;
    }
    
    .footer-column-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        text-align: center;
        color: #ffffff;
    }
    
    .footer-column-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
    }
    
    /* Improved menu grid layout */
    .footer-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 20px;
        text-align: left;
    }
    
    .footer-menu li {
        background: rgba(255, 255, 255, 0.04);
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .footer-menu li:hover {
        background: rgba(0, 168, 230, 0.1);
        transform: translateY(-1px);
    }
    
    .footer-menu a {
        font-size: 0.85rem;
        padding: 10px 12px;
        display: block;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .footer-menu a:hover {
        color: #00a8e6;
        padding-left: 12px;
    }
    
    .footer-menu a:hover::before {
        display: none;
    }
    
    /* Enhanced footer bottom */
    .footer-bottom {
        background: rgba(0, 0, 0, 0.4);
        padding: 20px 0;
    }
    
    .footer-bottom-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    
    .footer-social {
        order: -1;
        gap: 18px;
        margin-bottom: 10px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .social-link:hover {
        background: linear-gradient(135deg, #007cba, #00a8e6);
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
    }
    
    .footer-copyright {
        font-size: 0.85rem;
        color: #aaaaaa;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 30px 0 25px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-company {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .footer-description {
        font-size: 0.85rem;
        max-width: 280px;
    }
    
    .contact-item {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .footer-links,
    .footer-categories,
    .footer-service {
        padding: 18px;
        margin-bottom: 18px;
    }
    
    .footer-column-title {
        font-size: 1rem;
    }
    
    .footer-menu {
        gap: 10px 15px;
    }
    
    .footer-menu a {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .footer-company {
        padding: 18px;
    }
    
    .footer-description {
        font-size: 0.8rem;
        max-width: 260px;
    }
    
    .contact-item {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .footer-menu {
        gap: 8px 12px;
    }
    
    .footer-menu a {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}

/* Dark mode adjustments (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .footer-wrapper {
        background: linear-gradient(135deg, #0a0a0a 0%, #1d1d1d 100%);
    }
    
    .footer-bottom {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Animation for footer elements */
.footer-column {
    animation: fadeInUp 0.6s ease-out;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure footer sticks to bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1 0 auto;
}

.footer-wrapper {
    flex-shrink: 0;
}