/* ========== FOOTER ANIMATIONS ========== */

/* Fade in animation pentru footer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in pentru coloane */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse pentru social icons */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Glow effect pentru links */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(30, 144, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(30, 144, 255, 0.6);
    }
}

/* Footer container */
.footer {
    animation: fadeInUp 0.8s ease-out;
}

/* Footer columns staggered animation */
.footer-coloana:nth-child(1) {
    animation: slideInLeft 0.6s ease-out 0.1s both;
}

.footer-coloana:nth-child(2) {
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.footer-coloana:nth-child(3) {
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.footer-coloana:nth-child(4) {
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

/* Logo hover effect */
.logo-footer {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-footer:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Social icons animations */
.footer-social a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.4);
}

.footer-social a:active {
    transform: translateY(-2px) scale(1.05);
}

/* Links hover effects */
.footer-coloana ul li a {
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-coloana ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e90ff, #00d4ff);
    transition: width 0.3s ease;
}

.footer-coloana ul li a:hover::after {
    width: 100%;
}

.footer-coloana ul li a:hover {
    transform: translateX(5px);
    color: #1e90ff;
}

/* Contact items hover */
.contact-item {
    transition: all 0.3s ease;
    padding-left: 0;
}

.contact-item:hover {
    padding-left: 10px;
    background: rgba(30, 144, 255, 0.05);
    border-radius: 8px;
}

.contact-item i {
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #1e90ff;
}

/* ANPC badges hover */
.anpc-badges a {
    transition: all 0.3s ease;
    display: inline-block;
}

.anpc-badges a:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.1);
}

/* ========== FOOTER ANIMATIONS ========== */

/* Fade in animation pentru footer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in pentru coloane */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse pentru social icons */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Glow effect pentru links */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(30, 144, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(30, 144, 255, 0.6);
    }
}

/* Footer container */
.footer {
    animation: fadeInUp 0.8s ease-out;
}

/* Footer columns staggered animation */
.footer-coloana:nth-child(1) {
    animation: slideInLeft 0.6s ease-out 0.1s both;
}

.footer-coloana:nth-child(2) {
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.footer-coloana:nth-child(3) {
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.footer-coloana:nth-child(4) {
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

/* Logo hover effect */
.logo-footer {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-footer:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Social icons animations */
.footer-social a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.4);
}

.footer-social a:active {
    transform: translateY(-2px) scale(1.05);
}

/* Links hover effects */
.footer-coloana ul li a {
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-coloana ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e90ff, #00d4ff);
    transition: width 0.3s ease;
}

.footer-coloana ul li a:hover::after {
    width: 100%;
}

.footer-coloana ul li a:hover {
    transform: translateX(5px);
    color: #1e90ff;
}

/* Contact items hover */
.contact-item {
    transition: all 0.3s ease;
    padding-left: 0;
}

.contact-item:hover {
    padding-left: 10px;
    background: rgba(30, 144, 255, 0.05);
    border-radius: 8px;
}

.contact-item i {
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #1e90ff;
}

/* ANPC badges hover */
.anpc-badges a {
    transition: all 0.3s ease;
    display: inline-block;
}

.anpc-badges a:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.1);
}

.anpc-badges a:hover img {
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.3);
    border-radius: 8px;
}

/* Copyright fade in */
.footer-copyright {
    animation: fadeInUp 0.8s ease-out 0.5s both;
    transition: all 0.3s ease;
    text-align: center;
}

.footer-copyright:hover {
    transform: translateY(-2px);
}

.footer-copyright p {
    margin: 8px 0;
}

/* Creator credit styling */
.creator-credit {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 12px !important;
}

.creator-credit strong {
    color: #1e90ff;
    font-weight: 700;
    transition: all 0.3s ease;
}

.creator-credit:hover strong {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(30, 144, 255, 0.3);
}

/* Heartbeat animation */
@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

/* Heading animations */
.footer-coloana h3 {
    position: relative;
    transition: all 0.3s ease;
}

.footer-coloana h3::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #1e90ff, #00d4ff);
    transition: width 0.3s ease;
}

.footer-coloana:hover h3::before {
    width: 60px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Link pulse on focus */
.footer-coloana a:focus {
    outline: 2px solid #1e90ff;
    outline-offset: 4px;
    animation: pulse 1s ease-in-out;
}

/* Responsive animations - disable on mobile for performance */
@media (max-width: 768px) {

    .footer,
    .footer-coloana,
    .footer-copyright {
        animation: none;
    }

    /* Keep hover effects but simplify */
    .footer-social a:hover {
        transform: scale(1.1);
    }

    .footer-coloana ul li a:hover {
        transform: translateX(3px);
    }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}