/* Custom CSS beyond Tailwind */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Skill bars with transition */
.skill-bar {
    transition: width 1.5s ease-in-out;
}

/* Hero gradient animation */
.hero-gradient {
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Navigation active state */
.nav-active {
    color: #667eea;
    font-weight: 600;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Section title underline animation */
.section-title::after {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-gradient h1 {
        font-size: 2.5rem;
    }
    
    .hero-gradient h2 {
        font-size: 1.25rem;
    }
    
    .hero-gradient p {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .hero-gradient {
        background: #667eea;
        color: white;
    }
    
    nav, footer {
        display: none;
    }
    
    .card-hover {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
} 