@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles for the Jekyll portfolio */

/* Font family */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Staggered animations for skill categories */
.skill-category {
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }

/* Project cards hover effects */
.project-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.project-card:hover {
    transform: translateY(-2px);
}

/* Custom link styles */
a {
    transition: all 0.2s ease-in-out;
}

/* Backdrop blur support */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
    display: block !important;
}

/* Custom focus styles */
a:focus, 
button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Typography improvements */
.prose p {
    margin-bottom: 1rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .skill-category {
        text-align: center;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
}

/* Subtle gradient background */
body {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    min-height: 100vh;
}

/* Section spacing */
section {
    position: relative;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}