/* General Styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #020011; 
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Profile Container */
.profile-container {
   background: rgb(16, 41, 167);
   padding: 20px;
   border-radius: 10px;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
   text-align: center;
   width: 100%;
   max-width: 400px;
}

/* Global Transition Effect */
* {
    transition: all 0.3s ease; 
}

/* Heading and Paragraph Colors */
h1, p {
    color: #fff; 

}

/* Social Links Styles */
.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-links li {
    margin: 10px 0;
}

.social-links a {
  text-decoration: none;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  transition: color 0.3s ease, transform 0.3s ease;
  gap: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
}

/* Social Icon Styles */
.social-links .social-icon,
.social-links i {
    width: 40px; 
    height: 40px;  
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links img.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}


.social-links .fa-brands {
    font-size: 30px; 
}

.social-icon {
    background-color: rgba(0, 0, 0, 0.5);
}

.link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 1;
}

.link a {
display: flex;
justify-content: center;
align-items: center;
position: relative;
width: 100%;
} 

/* Gradient Background Animation */
.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, red , yellow, green, blue, purple); 
    border-radius: 5px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 400%;
    animation: gradientAnimation 3s linear infinite; 
}

/* Focus and Active States */
a:focus {
outline: 2px solid #ffd700; 
outline-offset: 4px;
}

a:active {
    background-color: #333; /* Dark background for active links */
    color: #fff;
}

/* Hover effect */
.social-links a:hover::before {
    opacity: 1; 
}
.social-links a:hover {
    color: #ffd700; 
}
.social-links a:active {
    transform: scale(0.95); 
}

/* Gradient Animation Keyframes */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Styles */
@media (max-width: 600px) {
    .profile-container {
        padding: 10px;
}
.social-links a {
    padding: 5px 10px;
}
.social-links .social-icon,
.social-links i {
    width: 30px; 
    height: 30px;  
    font-size: 20px;
}
}
