/* Custom Animations and Styles */

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

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Floating cards animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-card:nth-child(3) {
    animation-delay: 1s;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(40, 17, 33, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #a35e8d;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #ffc000;
    color: #281121;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(255, 192, 0, 0.2);
}

/* Image hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Responsive typography */
@media (max-width: 768px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl,
    .font-serif.text-7xl,
    .font-serif.text-8xl {
        font-size: 2.5rem;
    }
}
