.gradient-text {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient 5s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.social-icon {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-1);
    transform: translateY(-3px);
}

.lead {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 2rem 0;
    animation: fadeIn 1s ease-out;
}

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

.name-animation {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(
        270deg,
        var(--accent-1),
        var(--accent-2),
        var(--accent-3),
        var(--accent-2)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameGradient 8s ease infinite;
}

@keyframes nameGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add floating particles effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-1);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(2n) {
    background: var(--accent-2);
    animation-duration: 20s;
    width: 6px;
    height: 6px;
}

.particle:nth-child(3n) {
    background: var(--accent-3);
    animation-duration: 25s;
    width: 8px;
    height: 8px;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Code symbols animation */
.code-symbol {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);  /* Increased from 0.1 to 0.15 */
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    animation: floatSymbol 15s infinite linear;
    text-shadow: 0 0 10px rgba(74, 158, 255, 0.2);  /* Added glow effect */
}

@keyframes floatSymbol {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;  /* Increased from 0.3 to 0.4 */
    }
    90% {
        opacity: 0.3;  /* Increased from 0.2 to 0.3 */
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Symbol variations */
.code-symbol:nth-child(2n) { 
    animation-duration: 20s; 
    font-size: 2rem; 
    color: rgba(255, 73, 219, 0.15);  /* Accent 2 color */
}
.code-symbol:nth-child(3n) { 
    animation-duration: 17s; 
    font-size: 1.8rem; 
    color: rgba(80, 250, 123, 0.15);  /* Accent 3 color */
}
.code-symbol:nth-child(4n) { 
    animation-duration: 22s; 
    font-size: 1.2rem;
    color: rgba(74, 158, 255, 0.15);  /* Accent 1 color */
}

/* Responsive Animation Adjustments */
@media screen and (max-width: 768px) {
    .particle {
        display: none;
    }

    .code-symbol {
        font-size: 1.2rem;
    }

    .name-animation {
        font-size: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cursor-trail,
    .particle,
    .code-symbol {
        display: none;
    }
}
