/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Custom styles for smooth scrolling and font */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Ensure Lucide icons are rendered */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideDownFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Animations */
@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}

@keyframes rotate {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

@keyframes shake {
    0%, 100% { 
        transform: translateX(0); 
    }
    25% { 
        transform: translateX(-5px); 
    }
    75% { 
        transform: translateX(5px); 
    }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(168, 85, 247, 0.4); 
    }
    50% { 
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.8); 
    }
}

/* Animation Classes */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.animate-bounce-subtle {
    animation: bounce 2s infinite ease-in-out;
}

.nav-slide-in {
    animation: slideDownFadeIn 0.7s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.animate-float {
    animation: float 3s infinite ease-in-out;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-glow {
    animation: glow 2s infinite ease-in-out;
}

/* Specific delays for sections */
#home .text-center { transition-delay: 0.1s; }
#about { transition-delay: 0.2s; }
#skills { transition-delay: 0.3s; }
#projects { transition-delay: 0.4s; }
#education { transition-delay: 0.5s; }
#contact { transition-delay: 0.6s; }

/* Project card, skill card, and education card hover effects */
.project-card:hover, .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.education-card {
    transition: all 0.3s ease-in-out;
}

.education-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(147, 51, 234, 0.2), 0 10px 20px -5px rgba(147, 51, 234, 0.1);
}

/* Hover Animations */
.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

.hover-rotate:hover {
    transform: rotate(5deg);
    transition: transform 0.3s ease-in-out;
}

.hover-bounce:hover {
    animation: bounce 0.6s ease-in-out;
}

.hover-shake:hover {
    animation: shake 0.5s ease-in-out;
}

.hover-glow:hover {
    animation: glow 1s ease-in-out infinite;
}

/* Text Animations */
@keyframes typewriter {
    from { 
        width: 0; 
    }
    to { 
        width: 100%; 
    }
}

@keyframes blink {
    0%, 50% { 
        border-color: transparent; 
    }
    51%, 100% { 
        border-color: #9333ea; 
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid #9333ea;
    white-space: nowrap;
    animation: typewriter 3s steps(30) 1s forwards, blink 1s infinite;
}

/* Card Animations */
.card-hover {
    transition: all 0.3s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button Animations */
.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.btn-animate::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-in-out;
}

.btn-animate:hover::before {
    left: 100%;
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Loading Animation */
@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

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

.animate-gradient {
    background: linear-gradient(-45deg, #9333ea, #3b82f6, #06b6d4, #10b981);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Skill Bar Animation */
@keyframes fillBar {
    from { 
        width: 0%; 
    }
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #9333ea, #3b82f6);
    border-radius: 4px;
    animation: fillBar 2s ease-out forwards;
}
