/* Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Card hover effects */
.tutorial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Progress bar animation */
.progress-bar {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button hover animation */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dark mode styles */
.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
    transition: all 0.3s ease;
}

.dark-mode .bg-white {
    background-color: #2d2d2d;
    color: #ffffff;
}

.dark-mode .text-gray-600 {
    color: #a0aec0;
}

.dark-mode .bg-gray-50 {
    background-color: #363636;
}

.dark-mode .bg-gray-100 {
    background-color: #404040;
}

.dark-mode .border {
    border-color: #404040;
}

/* Search bar focus effect */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2);
    transform: translateY(-1px);
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navigation menu animation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1877F2;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Logo animation */
.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(360deg);
}

/* Feature cards animation */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Input fields animation */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: inherit;
}

.btn:active::after {
    transform: scale(2);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease 0.2s;
}
