/* Footer Styles */
.footer {
    background: 
        linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #000000 50%, #2d2d2d 75%, #000000 100%),
        radial-gradient(ellipse at top left, rgba(229, 45, 39, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(37, 117, 252, 0.08) 0%, transparent 50%);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(229, 45, 39, 0.6) 20%, 
        rgba(37, 117, 252, 0.6) 80%, 
        transparent
    );
    animation: shimmerLine 3s ease-in-out infinite;
}

.footer::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229, 45, 39, 0.05), transparent 70%);
    border-radius: 50%;
    animation: floatGlow 8s ease-in-out infinite;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    margin-bottom: 30px;
    position: relative;
}

.footer-logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        rgba(229, 45, 39, 0.1), 
        rgba(37, 117, 252, 0.1), 
        rgba(229, 45, 39, 0.1)
    );
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateBorder 6s linear infinite;
}

.footer-logo:hover::before {
    opacity: 1;
}

.footer-logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.footer-logo img:hover {
    transform: scale(1.08) rotateY(5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(229, 45, 39, 0.6));
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.footer-social a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social a:hover::after {
    opacity: 1;
}

.footer-social a:nth-child(1) {
    background: linear-gradient(135deg, #3b5998 0%, #4c70ba 100%);
}

.footer-social a:nth-child(2) {
    background: linear-gradient(135deg, #e4405f 0%, #fd5949 100%);
}

.footer-social a:nth-child(3) {
    background: linear-gradient(135deg, #1da1f2 0%, #1a91da 100%);
}

.footer-social a:nth-child(4) {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.footer-social a:nth-child(5) {
    background: linear-gradient(135deg, #00af87 0%, #00c39a 100%);
}

.footer-social a:hover {
    transform: translateY(-8px) scale(1.15) rotateY(10deg);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(229, 45, 39, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-social a i {
    font-size: 20px;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.footer-social a:hover i {
    transform: scale(1.1) rotateZ(5deg);
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-links-group {
    position: relative;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-links-group:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-links-group h4 {
    color: #e52d27;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    background: linear-gradient(135deg, #e52d27, #ff6b35);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.footer-links-group:hover h4 {
    transform: translateX(5px);
}

.footer-links-group h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e52d27, #ff6b35);
    border-radius: 1px;
    transition: width 0.4s ease;
}

.footer-links-group:hover h4::after {
    width: 50px;
}

.footer-links-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-group li {
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

.footer-links-group li:hover {
    transform: translateX(8px);
}

.footer-links-group a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.footer-links-group a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #e52d27;
    font-weight: bold;
}

.footer-links-group a:hover {
    color: white;
    padding-left: 25px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-links-group a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    backdrop-filter: blur(10px);
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e52d27, transparent);
    animation: expandLine 2s ease-in-out infinite;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-bottom:hover p {
    color: #ecf0f1;
}

.footer-bottom i {
    color: #e52d27;
    animation: heartbeat 2s ease-in-out infinite;
    margin: 0 5px;
    filter: drop-shadow(0 0 5px rgba(229, 45, 39, 0.5));
}

/* Enhanced Animations */
@keyframes shimmerLine {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

@keyframes floatGlow {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
        opacity: 0.6; 
    }
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes expandLine {
    0%, 100% { width: 50px; opacity: 0.5; }
    50% { width: 150px; opacity: 1; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* License Section */
.footer-license {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.4s ease;
}

.footer-license::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(229, 45, 39, 0.05) 0%, 
        transparent 50%,
        rgba(37, 117, 252, 0.05) 100%);
    z-index: -1;
}

.footer-license::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: conic-gradient(
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent 30%
    );
    animation: rotateBorder 8s linear infinite;
    z-index: -2;
}

.footer-license:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 45, 39, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.license-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #e52d27, #ff6b47);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.license-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(229, 45, 39, 0.7), transparent);
    transition: width 0.4s ease;
}

.footer-license:hover .license-label::after {
    width: 100%;
}

.license-image {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    max-width: 240px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.license-image img {
    max-width: 100%;
    height: auto;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.license-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-license:hover .license-image {
    transform: scale(1.05);
}

.footer-license:hover .license-image::before {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-links-group {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-content {
        margin-bottom: 30px;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
    }
    
    .footer-social a i {
        font-size: 18px;
    }
    
    .footer-links-group {
        text-align: center;
        padding: 20px 15px;
    }
    
    .footer-links-group h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links-group:hover h4::after {
        width: 40px;
    }
    
    .footer-license {
        margin: 25px 0;
        padding: 15px;
    }
    
    .license-label {
        font-size: 1rem;
    }
    
    .license-image {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
    
    .footer-social a i {
        font-size: 16px;
    }
    
    .footer-links-group {
        padding: 15px 10px;
    }
    
    .footer-links-group h4 {
        font-size: 1.1rem;
    }
    
    .footer-links-group a {
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-license {
        margin: 20px 0;
        padding: 12px;
    }
    
    .license-label {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .license-image {
        max-width: 160px;
    }
}
