/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="0" cy="0" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-section {
    position: relative;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f39c12;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-section:hover h4::after {
    width: 60px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section ul li a::before {
    content: '▶';
    position: absolute;
    left: -15px;
    color: #f39c12;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: -20px;
}

.footer-section ul li a:hover {
    color: #f39c12;
    text-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-section p:hover {
    color: #ecf0f1;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.social-links a:hover i {
    transform: rotate(360deg);
}

/* Specific social media colors */
.social-links a:nth-child(1) { background: linear-gradient(135deg, #3b5998, #2d4373); } /* Facebook */
.social-links a:nth-child(2) { background: linear-gradient(135deg, #1da1f2, #0d8bd9); } /* Twitter */
.social-links a:nth-child(3) { background: linear-gradient(135deg, #0077b5, #005885); } /* LinkedIn */
.social-links a:nth-child(4) { background: linear-gradient(135deg, #e4405f, #c13584); } /* Instagram */
.social-links a:nth-child(5) { background: linear-gradient(135deg, #ff0000, #cc0000); } /* YouTube */

/* Footer Bottom */
.footer-bottom {
    border-top: 2px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
}

.footer-bottom p::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f39c12, transparent);
    border-radius: 1px;
}

/* Floating Animation Elements */
.footer::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 50%;
    animation: floatSlow 25s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(15px) rotate(90deg); }
    50% { transform: translateY(10px) translateX(-10px) rotate(180deg); }
    75% { transform: translateY(-15px) translateX(20px) rotate(270deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .social-links {
        justify-content: center;
        gap: 12px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul li a::before {
        display: none;
    }
    
    .footer-section ul li:hover {
        transform: none;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .footer::before,
    .footer::after,
    .social-links a,
    .footer-section ul li,
    .footer-section ul li a {
        animation: none;
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .footer {
        background: #000;
        color: #fff;
    }
    
    .footer-section h4 {
        color: #ffff00;
    }
    
    .footer-section ul li a {
        color: #fff;
    }
    
    .footer-section ul li a:hover {
        color: #ffff00;
    }
    
    .social-links a {
        background: #fff;
        color: #000;
    }
}

/* Print Styles */
@media print {
    .footer {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    .footer-section h4 {
        color: #000 !important;
    }
    
    .footer-section ul li a {
        color: #000 !important;
    }
    
    .social-links {
        display: none;
    }
    
    .footer::before,
    .footer::after {
        display: none;
    }
} 