/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes div {
    position: absolute;
    display: block;
    opacity: 0.1;
    animation: float-shapes 25s linear infinite;
    bottom: -150px;
}

.floating-shapes div:nth-child(1) {
    left: 10%;
    width: 80px;
    height: 80px;
    background: #3498db;
    border-radius: 50%;
    animation-delay: 0s;
}

.floating-shapes div:nth-child(2) {
    left: 20%;
    width: 30px;
    height: 30px;
    background: #e74c3c;
    border-radius: 50%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.floating-shapes div:nth-child(3) {
    left: 70%;
    width: 100px;
    height: 100px;
    background: #2ecc71;
    border-radius: 50%;
    animation-delay: 4s;
}

.floating-shapes div:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    background: #9b59b6;
    border-radius: 50%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.floating-shapes div:nth-child(5) {
    left: 65%;
    width: 40px;
    height: 40px;
    background: #f1c40f;
    animation-delay: 0s;
}

.floating-shapes div:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    background: #1abc9c;
    border-radius: 50%;
    animation-delay: 3s;
}

.floating-shapes div:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    background: #e67e22;
    border-radius: 50%;
    animation-delay: 7s;
}

.floating-shapes div:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    background: #34495e;
    animation-delay: 15s;
    animation-duration: 45s;
}

@keyframes float-shapes {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* Dynamic Text Animation */
.dynamic-text-container {
    min-height: 60px;
    margin-bottom: 30px;
    position: relative;
        width: 100%;
  padding: 0 10px;

  overflow-x: auto;
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
     
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Profile Image Border Animation */
.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-border {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation-duration: 20s;
}

/* Arrow Icon Animation */
.arrow-icon {
    margin-left: 5px;
    animation: bounce 2s infinite;
}

/* Section Title Animation */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -10px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

.section-title:hover::before {
    width: 100%;
}




/* Nav Link Hover Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* assets/css/animations.css */

/* assets/css/animations.css */

/* assets/css/animations.css */
.social-icon {
    display: inline-block;      /* make it respect line-height */
    width: 50px;
    height: 50px;
    line-height: 50px;          /* same as height → vertical centering */
    text-align: center;         /* horizontal centering */
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    margin: 0 10px;
    transition: all 0.3s ease;
  }
  
  .social-icon i {
    display: inline-block;
    vertical-align: middle;     /* extra insurance for centering */
    line-height: inherit;
  }
  
  .social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(52,152,219,0.4);
  }
  
  
/* Mobile Menu Animations */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) }
    40% { transform: translateY(-10px) }
    60% { transform: translateY(-5px) }
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

/* Fade Out Animation */
@keyframes fadeOut {
    from { opacity: 1 }
    to { opacity: 0 }
}