.top-footer {
    width: 100%;
    background-color: var(--primary-color);
    position: relative;
    height: 120px;
    align-content: center;
    margin: 4px 0px;
    align-content: center;
    color: #fff;
         background-image: url(../assets/footerbg.png);
    background-position: center;
    /* opacity: 0; */
    background-size: cover ;
background-attachment: fixed;
}

.top-footer h2 {
    text-align: center;
    font-size: 5rem;
   
    color: #fff;

    text-shadow:
        1px 1px 0 #ccc,
        2px 2px 0 #bbb,
        3px 3px 0 #aaa,
        4px 4px 0 #999,
        5px 5px 0 #888,
        6px 6px 0 #777,
        7px 7px 0 #666,
        8px 8px 0 #555,
        9px 9px 0 #444,
        10px 10px 0 #333,
        -2px -2px 0px var(--secondary-color);
    transform: perspective(500px) rotateX(10deg);
    animation: text_animation 0.5s alternate infinite;
}



.uper-boder {
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    top: 5px;
}

.lower-boder {
    position: absolute;
    bottom: 5px;
    margin-top: 10px;
    width: 100%;
    height: 2px;
    background-color: white;
}

.top-footer:hover::after,
.top-footer:hover::before {
    animation-play-state: paused;

}

.top-footer::before {
    content: "";
    background-image: url(../assets//logo.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 30%;
    height: 100px;
    display: block;
    margin: 0px auto;
    top: 10px;

    position: absolute;
    animation: fromLeftToRight 0.5s ease-out infinite alternate;

}

.top-footer::after {
    content: "";
    background-image: url(../assets//logo.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 30%;
    height: 100px;
    display: block;
    margin: 0px auto;
    top: 10px;
    right: 0px;
    position: absolute;
    animation: fromRightToLeft 0.5s ease-out infinite alternate;
    transform: scaleX(-1);


}

@keyframes fromLeftToRight {
    0% {

        left: 0px;
    }

    100% {
        /* transform: scaleX(-1); */

        left: 5%
    }

}

@keyframes fromRightToLeft {
    0% {
        right: 0px;
    }

    100% {
        /* transform: scaleX(1); */

        right: 5%;
    }
}

@keyframes text_animation {
    0%{
         letter-spacing: 0px;

    }
    100%{
         letter-spacing: 25px;
         text-shadow: -2px -2px 0px var(--secondary-color);

    }
    
}


@media (max-width:768px) and (min-width:1px) {
    .top-footer {
        display: none;
    }

}



















/* Footer Styles */
.footer {
    background-color: var(--dark-color);
      background-image: url(../assets/footerbg.png);
    background-position: center;
    /* opacity: 0; */
    background-size: cover ;
background-attachment: fixed;
    /* background-color: #0E1728; */
    color: #fff;
    padding: 60px 0 0;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-heading {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links i,
.footer-contact i {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: #0E1728;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
} 

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

@media (min-width:0px) and (max-width:288px){
.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    width: 100% !important;
}
} 
    


.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    width: 50px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer {
        padding: 80px 0 0;
    }
}

/* Animation for links */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-links li,
.footer-contact li {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.footer-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-links li:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-links li:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-links li:nth-child(4) {
    animation-delay: 0.4s;
}

.footer-links li:nth-child(5) {
    animation-delay: 0.5s;
}