/* Additional styles beyond Tailwind CSS */

/* Theme transition for smoother theme switching */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Theme toggle button styles */
#theme-toggle {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Active filter button style */
.filter-btn.active {
    color: white;
}

/* Blue gradient for light mode */
.bg-blue-gradient {
    background: linear-gradient(45deg, #002395, #0043C8);
}

/* Purple gradient for dark mode */
.bg-purple-gradient {
    background: linear-gradient(45deg, #7B45EA, #9160F0);
}

/* Smooth transitions for project cards */
.project-card {
    transition: all 0.3s ease;
}

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

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

.dark ::-webkit-scrollbar-track {
    background: #1e1e1e;
}

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

.dark ::-webkit-scrollbar-thumb {
    background: #555;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Some animation for the cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Stagger animation for cards */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }

/* Hover effect for project images */
.project-card .h-48 img {
    transition: transform 0.5s ease;
}

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

/* Button hover effects */
.project-card a {
    transition: all 0.3s ease;
}

.project-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modal animation */
#tableau-modal {
    transition: opacity 0.3s ease;
}

#tableau-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#tableau-modal:not(.hidden) {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .project-card {
        animation-delay: 0.1s !important; /* Override staggered delays on mobile */
    }
} 