/* Footer Styles */
.footer {
    background-color: var(--light-bg);
    color: var(--text-color);
    position: relative;
}

.footer-info img {
    max-height: 50px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: #404040;
    transform: translateY(-3px);
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
}

.footer-contact i {
    color: var(--primary-color);
    width: 18px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-bottom {
    background-color: #2d2d2d !important;
    color: white;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Whatsapp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn:hover {
    background-color: #404040;
    transform: translateY(-3px);
}

/* Sticky Header */
.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.5s ease;
    backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Footer Bottom & Designer Credit - Unified grey color */
.footer-bottom {
    background-color: #2d2d2d;
}

.footer-designer {
    background-color: #2d2d2d;
}

.footer-designer p {
    color: #ffd700;
    font-size: 14px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .footer {
        background-color: var(--surface-color) !important;
    }
    
    .footer h4, .footer h5 {
        color: var(--text-primary) !important;
    }
    
    /* Footer .text-primary override for dark mode - keep blue color */
    .footer .text-primary {
        color: var(--primary-color) !important;
    }
    
    .footer p {
        color: var(--text-muted) !important;
    }
    
    .footer-links a,
    .footer-contact li {
        color: var(--text-muted) !important;
    }
    
    .footer-links a:hover {
        color: var(--primary-color) !important;
    }
    
    .footer-info p {
        color: var(--text-muted) !important;
    }
    
    /* Footer bottom - unified black for dark mode */
    .footer-bottom {
        background-color: #1a1a1a !important;
    }
    
    /* Designer credit - unified black for dark mode */
    .footer-designer {
        background-color: #1a1a1a !important;
    }
    
    .footer-designer p {
        color: #ffd700 !important;
    }
    
    .header.sticky {
        background: rgba(26, 26, 26, 0.98) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    }
}

/* Mobile Dark Mode - Sticky Header */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .header.sticky {
        background: rgba(26, 26, 26, 0.98) !important;
        backdrop-filter: blur(10px);
    }
}

/* Mobile Light Mode - Footer Background Override */
@media (max-width: 768px) {
    .footer {
        background-color: #f8f9fa !important;
    }
    
    .footer-bottom {
        background-color: #2d2d2d !important;
    }
    
    .footer-designer {
        background-color: #2d2d2d !important;
    }
    
    /* Mobile Light Mode Text Colors */
    .footer p {
        color: #333333 !important;
    }
    
    .footer-info p {
        color: #333333 !important;
    }
    
    .footer-links a {
        color: #333333 !important;
    }
    
    .footer-contact li {
        color: #333333 !important;
    }
    
    .footer h4, .footer h5 {
        color: #333333 !important;
    }
    
    /* Exception: Footer Bottom Copyright - FORCE WHITE */
    .footer-bottom p.text-white,
    .footer-bottom p,
    .footer-bottom .text-white,
    .footer-bottom * {
        color: #ffffff !important;
    }
    
    /* Mobile Designer Credit - Yellow Color */
    .footer-designer p {
        color: #ffff00 !important;
    }
}

/* Mobile Dark Mode Override - CRITICAL */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .footer {
        background-color: #1a1a1a !important;
    }
    
    .footer p {
        color: #ffffff !important;
    }
    
    .footer-info p {
        color: #ffffff !important;
    }
    
    .footer-links a {
        color: #ffffff !important;
    }
    
    .footer-contact li {
        color: #ffffff !important;
    }
    
    /* Mobile Footer Background - Black Theme */
    .footer-bottom {
        background-color: #1a1a1a !important;
    }
    
    .footer-designer {
        background-color: #1a1a1a !important;
    }
    
    /* Mobile Designer Credit - Yellow Color for Dark Mode */
    .footer-designer p {
        color: #ffff00 !important;
    }
}