/* footer-style.css - Animated Footer with KCIC Theme */

/* ===== FOOTER CONTAINER ===== */
.main-footer {
    position: relative;
    background: linear-gradient(135deg, #1a3a32 0%, #2d5c52 50%, #1a3a32 100%);
    color: #ffffff;
    padding: 60px 0 0;
    overflow: hidden;
    margin-top: 80px;
    border-top: 3px solid #4F8F84;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER CONTENT ===== */
.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* ===== FOOTER SECTIONS ===== */
.footer-section {
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 143, 132, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatSection 6s ease-in-out infinite;
}

.footer-section:nth-child(1) { animation-delay: 0s; }
.footer-section:nth-child(2) { animation-delay: 1s; }
.footer-section:nth-child(3) { animation-delay: 2s; }
.footer-section:nth-child(4) { animation-delay: 3s; }

.footer-section:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(79, 143, 132, 0.3);
    border-color: #4F8F84;
}

@keyframes floatSection {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== FOOTER LOGO ===== */
.footer-logo {
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-container img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4F8F84;
    padding: 5px;
    background: white;
    transition: all 0.4s ease;
    animation: rotateLogo 20s linear infinite;
}

.logo-container img:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(79, 143, 132, 0.8);
}

@keyframes rotateLogo {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #4F8F84, #7FB7AE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text small {
    font-size: 12px;
    color: #a3d9cf;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 17px;
    line-height: 1.6;
    color: #c5e8e0;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 3px solid #4F8F84;
    transition: all 0.3s ease;
}

.footer-description:hover {
    background: rgba(0, 0, 0, 0.3);
    border-left-color: #F26A8D;
    transform: translateX(5px);
}

/* ===== SOCIAL ICONS ===== */
.footer-socials {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4F8F84, #F26A8D);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(79, 143, 132, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover i {
    animation: socialIconFloat 0.6s ease;
}

@keyframes socialIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ===== FOOTER HEADINGS ===== */
.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    padding-bottom: 10px;
    border-bottom: 2px solid #4F8F84;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

.footer-section h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #F26A8D;
    transition: width 0.4s ease;
}

.footer-section:hover h3::before {
    width: 100%;
}

/* ===== FOOTER LINKS ===== */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.footer-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4F8F84;
    transition: all 0.3s ease;
}

/* ===== CONSISTENT NAVIGATION STYLES ===== */
.footer-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c5e8e0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 5px 0;
    padding-left: 20px;
    margin-left: -20px;
    border-radius: 25px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #4F8F84;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: #ffffff;
    transform: translateX(10px);
    padding-left: 30px;
    background: rgba(79, 143, 132, 0.15);
    border-bottom-color: #F26A8D;
}

.footer-nav-link:hover::before {
    opacity: 1;
    left: 10px;
}

/* Active state matching header */
.footer-nav-link.active {
    background: linear-gradient(135deg, rgba(79, 143, 132, 0.2), rgba(127, 183, 174, 0.2));
    border-left: 3px solid #F26A8D;
}

/* Pillar items (non-clickable) */
.footer-links li:not(a) {
    color: #c5e8e0;
    padding: 5px 0;
    padding-left: 20px;
    font-size: 15px;
    cursor: default;
}

.footer-links li:hover::before {
    transform: translateX(5px);
    color: #F26A8D;
}

/* ===== NEWSLETTER ===== */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #4F8F84;
    box-shadow: 0 0 0 3px rgba(79, 143, 132, 0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.subscribe-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F8F84, #F26A8D);
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.subscribe-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.subscribe-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 25px rgba(79, 143, 132, 0.5);
}

.subscribe-btn:hover::before {
    width: 200px;
    height: 200px;
}

.subscribe-btn:hover i {
    animation: planeFly 0.6s ease;
}

@keyframes planeFly {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px) translateY(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: #a3d9cf;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #c5e8e0;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal a:hover {
    color: #ffffff;
    background: rgba(79, 143, 132, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 143, 132, 0.2);
    border-color: #4F8F84;
}

/* ===== PARTICLES BACKGROUND ===== */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(79, 143, 132, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(242, 106, 141, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(127, 183, 174, 0.1) 0%, transparent 30%);
}

/* ===== FOOTER "JOIN KCIC" BUTTON ===== */
.footer-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4F8F84, #7FB7AE, #9AC9C0, #F26A8D);
    background-size: 300% 300%;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    animation: gradientShift 6s ease infinite;
    box-shadow: 0 4px 15px rgba(79, 143, 132, 0.4);
    position: relative;
    overflow: hidden;
}

.footer-join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(79, 143, 132, 0.2) 0%, transparent 70%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.8);
    z-index: 1;
}

.footer-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 143, 132, 0.5);
}

.footer-join-btn:hover::before {
    opacity: 1;
    transform: scale(1.8);
    background: radial-gradient(circle at center, rgba(79, 143, 132, 0.4) 0%, transparent 70%);
}

.footer-join-btn i {
    transition: transform 0.3s ease;
}

.footer-join-btn:hover i {
    transform: translateX(5px);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== SCROLL TO TOP BUTTON ===== */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4F8F84, #F26A8D);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(79, 143, 132, 0.4);
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(79, 143, 132, 0.6);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section {
        padding: 15px;
    }
    
    .brand {
        font-size: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 30px 0 0;
    }
    
    .footer-section {
        padding: 12px;
    }
    
    .brand {
        font-size: 22px;
    }
    
    .footer-links a,
    .footer-nav-link {
        font-size: 14px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .subscribe-btn {
        width: 45px;
        height: 45px;
    }
    
    .footer-join-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    #scrollToTopBtn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ===== ANIMATIONS FOR LOADING ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.footer-content > *:nth-child(1) { animation-delay: 0.1s; }
.footer-content > *:nth-child(2) { animation-delay: 0.2s; }
.footer-content > *:nth-child(3) { animation-delay: 0.3s; }
.footer-content > *:nth-child(4) { animation-delay: 0.4s; }

/* ===== WATER RIPPLE EFFECT ===== */
.footer-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    pointer-events: none;
    z-index: 1;
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== NOTIFICATION STYLES ===== */
.footer-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    font-size: 14px;
    color: white;
    border-left: 4px solid;
}

.footer-notification-success {
    background: #4F8F84;
    border-left-color: #7FB7AE;
}

.footer-notification-error {
    background: #F26A8D;
    border-left-color: #ff8fa3;
}

.footer-notification-info {
    background: #2d5c52;
    border-left-color: #4F8F84;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== SHAKE ANIMATION ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===== CONFETTI ANIMATION ===== */
@keyframes confettiFall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotate));
        opacity: 0;
    }
}