/* Footer.css */
.footer {
    background-color: #0ea5e9;
    color: #657b8f;
    padding: 60px 20px;
    width: 100%;
    position: relative;
    bottom: 0;
    border-radius: 10px;
    overflow: hidden;
}
a:hover {
    color: #313131 !important;
    font-weight: bold;
    /* Change the color to your desired hover color */
  }
  

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    animation: fadeIn 1s ease-in-out;
}

.footer-section {
    flex: 1;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.4s;
}

.footer-section h4 {
    text-decoration: underline;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #fff;
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

/* Footer.css */
.footer-section h4 {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease-in-out;
}

.footer-section h4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: translateX(-101%);
    transition: transform 0.3s ease-in-out;
}

.footer-section h4:hover {
    color: #212121;
}

.footer-section h4:hover::before {
    transform: translateX(0);
    animation: glitchEffect 0.8s steps(8) infinite;
}

@keyframes glitchEffect {
    0% {
        background-color: rgb(255, 255, 255);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
    25% {
        background-color: rgba(0, 81, 255, 0.773);
        clip-path: polygon(0 0, 100% 0, 100% 25%, 0% 25%);
    }
    50% {
        background-color: rgba(0, 255, 0, 0.356);
        clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0% 100%);
    }
    75% {
        background-color: rgba(0, 0, 255, 0.659);
        clip-path: polygon(0 50%, 100% 50%, 100% 75%, 0% 75%);
    }
    100% {
        background-color: rgba(255, 255, 255, 0.647);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}


.footer-section p,
.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ddd;
    line-height: 1.6;
}

.footer-section ul li {
    margin-bottom: 15px; /* Combined preference: margin-bottom from version 2 */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.footer-section ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-section ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.footer-section ul li:nth-child(5) {
    animation-delay: 0.5s;
}

.footer-section ul li a,
.footer-section p a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.footer-section ul li a:hover,
.footer-section p a:hover {
    color: #90d0fe;
    text-decoration:solid;
    transform: scale(1.3);
}

.smedia {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-evenly !important;
    font-size: 20px;
    color: white;
}

.smedia a {
    margin: 0 10px;
    padding: 8px;
    transition: color 0.3s, transform 0.3s;
}

.smedia a:hover {
    color: #90a9bb;
    transform: scale(1.2);
}

.footer-section .social-media {
    color: #ddd;
    font-size: 1.5em;
}


.social-media a {
    margin: 0 10px;
    padding: 8px;
    transition: color 0.3s, transform 0.3s;
}

.social-media a:hover {
    color: #90a9bb; /* Hover effect for .smedia a */
    transform: scale(1.2);
}

.footer-section .social-media {
    color: #ddd;
    font-size: 1.5em;
}

.footer-section .social-media a:hover {
    color: #0ea5e9; /* Hover effect for .footer-section .social-media a */
}


.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: white; /* You can change this to #aaa if preferred */
    margin-top: 30px; /* Combined preference: margin-top from version 2 */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.6s;
}



@media (min-width: 1053px) {
    .footer-content {
        flex-direction: row;
    }

}

@media (max-width: 1052px ) and (min-width: 949px){
    .footer-content {
        flex-direction: row;
    }
    .footer-section{
        font-size:small;
    }

}

@media (max-width: 948px ) and (min-width: 855px){
    .footer-content {
        flex-direction: row;
    }
    .footer-section{
        font-size:x-small;
    }

}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    position: relative;
    background-color: rgba(62, 99, 217, 0.144);
    backdrop-filter: blur(5px);
    padding: 60px 20px;
    width: 100%;
    border-radius: 10px;
  }
  
  .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    filter: blur(50px);
  }
  

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s;
  }
  
  .modal-content {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.5s;
  }
  
  .modal-content h2 {
    margin-top: 0;
    color: #072183;
    font-weight: bold;
  }

  .modal-content p {
    color: #000000;
  }
  
  
  .modal-content button {
    background: #093eba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
  }
  
  .modal-content button:hover {
    background: #05286f;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  