/* Modern Footer - Vibrant & Playful Design */

/* CSS Variables for footer theming */
:root {
    --footer-bg: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    --footer-text: #ffffff;
    --footer-text-secondary: #ffffff;
    --footer-accent: #60a5fa;
    --footer-hover: #10b981;
    --footer-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
    --footer-border: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    bottom: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #10b981, #8b5cf6, #60a5fa);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* Company Info Section */
.footer-section:first-child {
    animation: fadeInUp 0.8s ease;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.9rem;
    color: var(--footer-text);
    font-weight: 500;
    margin-top: 0.25rem;
}

.footer-section p {
    color: var(--footer-text);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Section Headers */
.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--footer-text);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.5s;
}

.footer-links a:hover::before {
    left: 100%;
}

.footer-links a:hover {
    color: var(--footer-hover);
    transform: translateX(8px);
}

.footer-links a i {
    font-size: 1rem;
    color: var(--footer-accent);
    width: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    transform: scale(1.2);
    color: var(--footer-hover);
}

/* Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--footer-text);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    transition: left 0.5s;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    color: var(--footer-hover);
    transform: translateX(8px);
}

.contact-item i {
    font-size: 1.1rem;
    color: var(--footer-accent);
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2);
    color: var(--footer-hover);
}

.contact-item span {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--footer-border);
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--footer-text);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--footer-hover);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1;
        text-align: left;
    }
    
    .footer-logo {
        justify-content: flex-start;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1.5rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-logo i {
        font-size: 2rem;
    }
    
    .footer-logo h2 {
        font-size: 1.5rem;
    }
    
    .footer-social {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link i {
        font-size: 1.1rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .footer {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .footer-bottom {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .footer {
        background: #000000;
        color: #ffffff;
    }
    
    .footer-text-secondary {
        color: #cccccc;
    }
    
    .social-link {
        border: 2px solid #ffffff;
    }
    
    .footer-links a,
    .contact-item {
        border: 1px solid transparent;
    }
    
    .footer-links a:hover,
    .contact-item:hover {
        border-color: var(--footer-hover);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer::before,
    .social-link,
    .footer-links a,
    .contact-item,
    .footer-bottom-links a {
        animation: none;
        transition: none;
    }
    
    .footer-logo i {
        animation: none;
    }
}

/* Print styles */
@media print {
    .footer {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
    }
    
    .footer::before,
    .footer::after {
        display: none;
    }
    
    .social-link {
        display: none;
    }
    
    .footer-social {
        display: none;
    }
}