/* Enhanced Footer Additional Effects */

/* Developer Credit Styling */
.developer-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

.developer-credit a {
    color: #a8d49a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.developer-credit a:hover {
    color: #7fb069;
    text-shadow: 0 0 10px rgba(168, 212, 154, 0.5);
}

.developer-credit a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: linear-gradient(90deg, #a8d49a, #7fb069);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.developer-credit a:hover::after {
    width: 100%;
}

/* Responsive developer credit */
@media (max-width: 768px) {
    .developer-credit {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 576px) {
    .developer-credit {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
}

/* Glass morphism effect */
.footer-section {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.9) 0%, 
        rgba(22, 33, 62, 0.9) 50%, 
        rgba(15, 52, 96, 0.9) 100%);
}

/* Neon glow effect for social links */
.social-link-item {
    position: relative;
    overflow: hidden;
}

.social-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(168, 212, 154, 0.1) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

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

/* Enhanced icon glow */
.social-link-item i {
    filter: drop-shadow(0 0 8px currentColor);
    transition: all 0.4s ease;
}

.social-link-item:hover i {
    filter: drop-shadow(0 0 15px currentColor);
    animation: iconGlow 1s ease-in-out infinite alternate;
}

@keyframes iconGlow {
    from {
        filter: drop-shadow(0 0 15px currentColor);
    }
    to {
        filter: drop-shadow(0 0 25px currentColor) brightness(1.2);
    }
}

/* Floating animation for contact items */
.contact-item {
    animation: float 6s ease-in-out infinite;
}

.contact-item:nth-child(2) {
    animation-delay: 2s;
}

.contact-item:nth-child(3) {
    animation-delay: 4s;
}

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

/* Enhanced title effects */
.footer-info h3,
.footer-social h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.3);
    }
}

/* Particle system */
.footer-section::after {
    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="particles" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(168,212,154,0.3)"/><circle cx="40" cy="20" r="0.8" fill="rgba(244,162,97,0.3)"/><circle cx="25" cy="40" r="0.6" fill="rgba(231,111,81,0.3)"/></pattern></defs><rect width="100" height="100" fill="url(%23particles)"/></svg>');
    opacity: 0.2;
    animation: particleFloat 15s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(360deg);
    }
}

/* Enhanced hover effects for footer bottom */
.footer-bottom {
    position: relative;
    overflow: hidden;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(168, 212, 154, 0.1), 
        transparent);
    transition: left 1s ease;
}

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

/* Enhanced focus states */
.social-link-item:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 15px;
    box-shadow: 
        0 0 0 3px rgba(168, 212, 154, 0.3),
        0 0 20px rgba(168, 212, 154, 0.5);
}

.contact-item:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 12px;
    box-shadow: 
        0 0 0 3px rgba(168, 212, 154, 0.3),
        0 0 15px rgba(168, 212, 154, 0.4);
}

/* Enhanced loading animation */
.social-link-item.loading {
    position: relative;
    overflow: hidden;
}

.social-link-item.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .footer-section::after {
        animation: particleFloat 10s linear infinite;
    }
    
    .contact-item {
        animation: float 4s ease-in-out infinite;
    }
    
    .social-link-item:hover i {
        animation: iconGlow 0.8s ease-in-out infinite alternate;
    }
}

@media (max-width: 480px) {
    .footer-section::after {
        animation: particleFloat 8s linear infinite;
    }
    
    .contact-item {
        animation: float 3s ease-in-out infinite;
    }
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
    .footer-section {
        background: linear-gradient(135deg, 
            rgba(10, 10, 10, 0.95) 0%, 
            rgba(26, 26, 26, 0.95) 50%, 
            rgba(42, 42, 42, 0.95) 100%);
    }
    
    .contact-item {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(168, 212, 154, 0.05);
    }
    
    .social-link-item {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(168, 212, 154, 0.05);
    }
}

/* Enhanced print styles */
@media print {
    .footer-section::before,
    .footer-section::after,
    .social-link-item::before,
    .contact-item::before,
    .footer-bottom::before {
        display: none;
    }
    
    .footer-section {
        background: #f5f5f5 !important;
        color: #333 !important;
        border-top: 2px solid #333 !important;
    }
    
    .social-link-item,
    .contact-item {
        background: white !important;
        border: 1px solid #ddd !important;
        color: #333 !important;
        animation: none !important;
    }
    
    .footer-info h3,
    .footer-social h3 {
        background: none !important;
        -webkit-text-fill-color: #333 !important;
        color: #333 !important;
        animation: none !important;
    }
}

/* Enhanced performance optimizations */
.footer-section {
    will-change: transform, opacity;
    contain: layout style paint;
}

.social-link-item,
.contact-item {
    will-change: transform, box-shadow;
    contain: layout style paint;
}

/* Enhanced touch interactions */
@media (hover: none) and (pointer: coarse) {
    .social-link-item:hover,
    .contact-item:hover {
        transform: none;
    }
    
    .social-link-item:active,
    .contact-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .social-link-item:active i {
        animation: iconGlow 0.3s ease-in-out;
    }
}

/* Enhanced accessibility for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .footer-section::before,
    .footer-section::after,
    .social-link-item::before,
    .contact-item::before,
    .footer-bottom::before {
        animation: none;
    }
    
    .contact-item {
        animation: none;
    }
    
    .social-link-item:hover i {
        animation: none;
    }
    
    .footer-info h3,
    .footer-social h3 {
        animation: none;
    }
}

/* Enhanced color scheme support */
@media (prefers-color-scheme: light) {
    .footer-section {
        background: linear-gradient(135deg, 
            rgba(26, 26, 46, 0.8) 0%, 
            rgba(22, 33, 62, 0.8) 50%, 
            rgba(15, 52, 96, 0.8) 100%);
    }
}

/* Enhanced contrast mode support */
@media (prefers-contrast: high) {
    .footer-section {
        background: #000 !important;
        color: #fff !important;
        border-top: 3px solid #fff !important;
    }
    
    .contact-item,
    .social-link-item {
        background: #333 !important;
        border: 2px solid #fff !important;
        color: #fff !important;
    }
    
    .footer-info h3,
    .footer-social h3 {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }
}

