/* Custom CSS for transitions and animations */
.tab-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.show {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-slides {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.carousel-slides::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Custom scrollbar for dark mode */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #1a1a1a;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #333;
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #444;
    }
}
/* Project card animations */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-thumb {
    image-rendering: -webkit-optimize-contrast; /* Helps sharpen images on some browsers */
    backface-visibility: hidden; /* Reduces flickering/blur during CSS transforms */
}

/* Animation for value cards */
.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Pulse animation for action button */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.action-button:hover {
    animation: pulse 1.5s infinite;
}

/* Smooth transitions for dark mode */
html {
    scroll-behavior: smooth;
}

body {
    transition: background-color 0.5s ease, color 0.5s ease;
}