@tailwind base;
@tailwind components;
@tailwind utilities;

.font-pacifico {
    font-family: 'Pacifico', cursive;
}

.font-quicksand {
    font-family: 'Quicksand', sans-serif;
}

.hero-section {
    position: relative;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ec4899, #f472b6);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #a855f7, #c084fc);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #fbbf24, #fcd34d);
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    75% {
        transform: translateY(30px) rotate(-5deg) scale(0.95);
    }
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

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

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

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #a855f7, #06b6d4);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-12px) rotate(2deg);
    box-shadow: 0 30px 60px rgba(236, 72, 153, 0.2);
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

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

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

.btn-order {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-order:hover {
    transform: scale(1.1);
}

.btn-order::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #ec4899, #a855f7, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-order:hover::after {
    opacity: 1;
}

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:hover::before {
    width: 500px;
    height: 500px;
}

.success-animation {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

input:focus, textarea:focus {
    border-color: #ec4899 !important;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

input.error, textarea.error {
    border-color: #ef4444 !important;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #fce7f3, #f3e8ff, #cffafe);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ec4899, #a855f7, #06b6d4);
    border-radius: 6px;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #db2777, #9333ea, #0891b2);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .shape {
        transform: scale(0.5);
    }
}
