/* Основные стили проекта */

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

/* Кастомные цвета */
.bg-primary {
    background-color: #57b605;
}

.text-primary {
    color: #57b605;
}

.hover\:bg-primary-dark:hover {
    background-color: #469004;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Стили для кнопок */
.btn-primary {
    @apply bg-[#57b605] hover:bg-[#469004] text-white font-bold py-3 px-6 rounded-lg transition duration-300 shadow-md hover:shadow-lg;
}

/* Стили для форм */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-transparent;
}

/* Маска телефона */
input[type="tel"] {
    font-variant-numeric: tabular-nums;
}

/* Плавное появление попапа */
#callbackPopup {
    animation: fadeInPopup 0.3s ease-out;
}

@keyframes fadeInPopup {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#callbackPopup > div {
    animation: slideUp 0.3s ease-out;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Анимация для элементов списка клиентов */
.client-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-item:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    transform: translateX(4px);
    border-radius: 8px;
}

.client-item:hover p {
    color: #16a34a;
    font-weight: 600;
}

.client-item p {
    transition: all 0.3s ease;
}

/* Кастомный скроллбар для портфолио табов */
.scrollbar-thin::-webkit-scrollbar {
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.8);
}

/* Скрыть скроллбар на мобильных для плавности */
@media (max-width: 768px) {
    .scrollbar-thin::-webkit-scrollbar {
        height: 3px;
    }
    
    .scrollbar-thin::-webkit-scrollbar-thumb {
        background-color: rgba(34, 197, 94, 0.3);
    }
    
    .scrollbar-thin::-webkit-scrollbar-thumb:hover {
        background-color: rgba(34, 197, 94, 0.6);
    }
}

/* Поддержка Firefox */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

@media (max-width: 768px) {
    .scrollbar-thin {
        scrollbar-color: rgba(34, 197, 94, 0.3) transparent;
    }
}
