footer{
    background: linear-gradient(360deg, #5750af, #0e0d1c);
    border-radius: 15px 15px 0 0;
}

.footer-container{
    width: 100%;
    padding: 70px 30px 20px;
    box-sizing: border-box;
}

.social-icons{
    display: flex;
    justify-content: center;
}

.social-icons a{
    text-decoration: none;
    padding: 10px;
    background-color: white;
    margin: 10px;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.social-icons a:hover{
    background-color: #a79cff;
    transition: all 0.3s ease-in-out;
}

.social-icons a i{
    font-size: 2em;
    color: black;
    transition: all 0.3s ease-in-out;
}

.social-icons a:hover i{
    color: white;
    transition: all 0.3s ease-in-out;
}

.footer-nav{
    margin: 30px 0;
}

.footer-nav ul{
    display: flex;
    justify-content: center;
    list-style: none;
}

.footer-nav ul li a{
    position: relative;
    color: white;
    margin: 20px;
    text-decoration: none;
    font-size: 1.3em;
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

.footer-nav ul li a:hover{
    opacity: 1;
    transition: all 0.3s ease-in-out;
    color: #a79cff;
}

.footer-nav ul li a:before{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: #a79cff;
    transition: all 0.3s ease-in-out;
}


.footer-nav ul li a:hover::before{
    left: 0;
    width: 100%;
    background-color: #a79cff;
    border-radius: 2px;
}

.footer-nav::before{
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 80%
    );
    z-index: -1;
}

.footer-bottom{
    color: white;
    justify-content: center;
}

/* Mobile Styles (Screens 768px and below) */
@media screen and (max-width: 768px) {
  .footer-container {
    padding: 30px 15px 15px; /* Compact padding for small screens */
  }

  /* Scale down social icons slightly so they fit cleanly on one line */
  .social-icons a {
    padding: 8px;
    margin: 6px;
  }
  .social-icons a i {
    font-size: 1.5em; 
  }

  /* Turn the horizontal row into a neat, centered grid layout */
  .footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, auto); /* Creates 2 equal columns */
    justify-content: center;
    gap: 15px 30px; /* Generates perfect spacing between rows and columns */
    padding: 0;
  }

  .footer-nav ul li a {
    margin: 0; /* Clears out desktop margins causing alignment bugs */
    font-size: 1.1em;
    display: block;
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
    font-size: 0.9em;
    margin-top: 15px;
  }
}

