/* Enhanced Animations and Effects */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.scroll-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--accent);
}

/* Enhanced Section Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}



.animate-project-card.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Enhanced Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}


.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    height: 250px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 0.2;
}

/* Enhanced Skill Tags */
.animate-skill-tag {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: var(--animation-delay, 0s);
}

.animate-skill-tag.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background-tertiary);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    background: var(--accent);
    color: var(--background);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Buttons */
.cta-btn, .project-link {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-btn:hover, .project-link:hover {
    color: var(--background);
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 20px var(--accent);
    transform: translateY(-2px);
}

/* Floating Elements Animation */
@keyframes float {
    from {
        transform: translateX(-100px) rotate(0deg);
    }
    to {
        transform: translateX(calc(100vw + 100px)) rotate(360deg);
    }
}

.floating-element {
    animation: float 20s infinite linear;
}

/* Enhanced Hero Section */
.hero-section .name {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-section .name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    animation: underlineExpand 2s ease-out 1.5s forwards;
}

@keyframes underlineExpand {
    from { width: 0; }
    to { width: 100%; }
}

/* Enhanced About Section */
.profile-img {
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-img:hover {
    transform: scale(1.05) rotateZ(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--accent);
}

/* Enhanced Social Links */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--background-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    color: var(--background);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced Form Styles */
.contact-form .form-control {
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: var(--background-tertiary);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(153, 213, 232, 0.25);
    transform: translateY(-2px);
}

/* Typing cursor effect */
.typing-cursor::after {
    content: '|';
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .project-card:hover {
        transform: translateY(-5px);
    }
    
    .floating-element {
        display: none;
    }
    
    .scroll-progress {
        height: 2px;
    }
}

/* Enhanced Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, var(--background-secondary), var(--background-tertiary), var(--background-secondary));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}