/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes wiggle {
    0%, 7%, 14%, 21%, 28%, 35%, 42%, 49%, 56%, 63%, 70%, 77%, 84%, 91%, 98%, 100% {
        transform: rotate(0deg);
    }
    3.5% {
        transform: rotate(-5deg);
    }
    10.5%, 24.5%, 38.5%, 52.5%, 66.5%, 80.5%, 94.5% {
        transform: rotate(5deg);
    }
    17.5%, 31.5%, 45.5%, 59.5%, 73.5%, 87.5% {
        transform: rotate(-5deg);
    }
}

/* Cupcake animation specific styles */
.animate-wiggle {
    animation: wiggle 2s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* Enhanced cupcake building animations */
#cupcake-container {
    perspective: 1000px;
}

#cupcake-container > div {
    transform-style: preserve-3d;
}

/* Sprinkle specific animations */
#sprinkles div:nth-child(odd) {
    animation-delay: 0.2s;
}

#sprinkles div:nth-child(even) {
    animation-delay: 0.4s;
}

/* Label animations */
.cupcake-label {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FF69B4, #D9B3FF);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #FF1493, #9B59B6);
}

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

/* Custom button hover effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hover-effect:hover::before {
    left: 100%;
}

/* Gallery item hover effects */
.gallery-item {
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Menu item hover effects */
.menu-item {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.1), rgba(217, 179, 255, 0.1));
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(255, 179, 217, 0.2), rgba(217, 179, 255, 0.2));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation hover effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF69B4, #D9B3FF);
    transition: width 0.3s ease;
}

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

/* Form input focus effects */
input:focus, textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-float {
        animation-duration: 4s;
    }

    .gallery-item:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .menu-item:hover {
        transform: translateY(-5px);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom utilities */
.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.text-shadow-custom {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(45deg, #FF69B4, #D9B3FF, #00FFB3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Cursor effects */
.cursor-pointer {
    cursor: pointer;
}

.cursor-hover:hover {
    cursor: pointer;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

.glide__bullet--active {
    background: #ae17e1;
}