/* ===== CSS VARIABLES FOR FOOTER ===== */
:root {
    /* Colors */
    --primary-blue: #007AFF;
    --primary-blue-dark: #0056CC;
    --secondary-purple: #5856D6;
    --accent-red: #FF3B30;
    --text-white: #FFFFFF;
    --text-light: #F5F5F7;
    --text-gray: #8E8E93;
    --bg-dark: #1D1D1F;
    --bg-darker: #000000;
    --bg-gray: #2C2C2E;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.2);
    --success-green: #34C759;
    --warning-orange: #FF9500;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font Sizes */
    --font-xs: 0.75rem;   /* 12px */
    --font-sm: 0.875rem;  /* 14px */
    --font-base: 1rem;    /* 16px */
    --font-lg: 1.125rem;  /* 18px */
    --font-xl: 1.25rem;   /* 20px */
    --font-2xl: 1.5rem;   /* 24px */
    --font-3xl: 1.875rem; /* 30px */
    --font-4xl: 2.25rem;  /* 36px */
}

/* ===== ENHANCED FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-white);
    padding-top: var(--space-3xl);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 100%);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.05) 50%, 
        transparent 100%);
}

.footer-top {
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
}

.footer-col h4 {
    color: var(--text-white);
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-md);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 1px;
}

/* Logo Column */
.footer-logo {
    display: block;
    margin-bottom: var(--space-lg);
    text-decoration: none;
}

.footer-logo img {
    height: 55px;
    width: auto;
    filter: none;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.2);
    transition: transform var(--transition-normal);
}

/* Make it larger on desktop */
@media (min-width: 992px) {
    .footer-logo img {
        height: 75px;
    }
}

/* Make it even larger on very large screens */
@media (min-width: 1200px) {
    .footer-logo img {
        height: 85px;
    }
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-description {
    font-size: var(--font-sm);
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: var(--font-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.1), transparent);
    transition: left var(--transition-normal);
}

.footer-links a:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    left: 100%;
}

.footer-links i {
    color: var(--primary-blue);
    font-size: 0.875rem;
    width: 16px;
    flex-shrink: 0;
}

/* Contact Info - CRITICAL FIX FOR WHITE CONTAINER */
.footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: var(--font-sm);
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.footer .contact-item i {
    color: var(--primary-blue);
    margin-top: 2px;
    font-size: var(--font-lg);
    flex-shrink: 0;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.footer .contact-item div {
    background: transparent !important;
}

.footer .contact-item span,
.footer .contact-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color var(--transition-fast);
    line-height: 1.5;
    background: transparent !important;
}

.footer .contact-item a:hover {
    color: var(--text-white);
}

.footer .contact-item strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

/* Enhanced Social Links */
.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-gray);
    color: var(--text-white);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.social-link i {
    position: relative;
    z-index: 1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Enhanced Newsletter */
.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-medium);
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: var(--font-sm);
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: var(--text-gray);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

/* Enhanced Footer Bottom */
.footer-bottom {
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.copyright {
    font-size: var(--font-sm);
    color: var(--text-gray);
    margin-bottom: var(--space-lg);
}

.copyright a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.copyright a:hover {
    color: var(--text-white);
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-bottom-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: var(--font-sm);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-xs) 0;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-blue);
    transition: width var(--transition-normal);
}

.footer-bottom-links a:hover {
    color: var(--text-white);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Enhanced Payment Methods */
.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.payment-method {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
    color: var(--text-gray);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.payment-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-normal);
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: var(--text-white);
}

.payment-method:hover::before {
    left: 100%;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
    
    .footer {
        padding-top: var(--space-2xl);
    }
    
    .footer-top {
        padding-bottom: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer .contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .footer .contact-item i {
        margin-top: 0;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .payment-methods {
        gap: var(--space-xs);
    }
}

/* Footer Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-col {
    animation: fadeInUp 0.6s ease-out;
}

.footer-col:nth-child(2) { animation-delay: 0.1s; }
.footer-col:nth-child(3) { animation-delay: 0.2s; }
.footer-col:nth-child(4) { animation-delay: 0.3s; }