/* Custom Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out forwards;
}

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

::-webkit-scrollbar-track {
    background: #18181b;
}

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

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

/* Modal Animation Classes */
.modal-enter {
    animation: modal-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Gradient Text Utilities */
.text-gradient {
    background: linear-gradient(to right, #dc2626, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Effect */
.glass {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hover Glow */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

/* Custom Selection */
::selection {
    background: #dc2626;
    color: white;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Slider Styles */
.slider-container {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.slider-item {
    scroll-snap-align: center;
}

/* Link Hover Effects */
.social-link {
    position: relative;
    transition: all 0.3s ease;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}

.social-link:hover::after {
    width: 100%;
}