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

@layer base {
    html {
        scroll-behavior: smooth;
    }
    body {
        font-family: 'Montserrat', sans-serif;
        overflow-x: hidden;
    }
    h1, h2, h3, h4 {
        font-family: 'Playfair Display', serif;
    }
}
/* Advanced 3D effects */
.perspective-wrapper {
    perspective: 2000px;
    transform-style: preserve-3d;
}

/* Particle animations */
@keyframes particle-drift {
    0% {
        transform: 
            translate(calc(var(--x-rand) * 10px), calc(var(--y-rand) * 10px))
            scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: 
            translate(calc(var(--x-rand) * 100px), calc(var(--y-rand) * -150px))
            scale(0.2);
        opacity: 0;
    }
}

@keyframes particle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

@keyframes ribbon-stretch {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.05);
    }
}

/* Custom particle types */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-drift var(--lifetime) linear forwards;
    width: var(--size);
    height: var(--size);
}

.particle-glow {
    background: radial-gradient(circle, rgba(255,240,200,0.8) 0%, rgba(255,200,100,0.4) 70%, transparent 100%);
    box-shadow: 0 0 15px 5px rgba(255, 240, 170, 0.6);
}

.particle-sparkle {
    background: white;
    box-shadow: 0 0 8px 2px white;
    animation: 
        particle-drift var(--lifetime) linear forwards,
        particle-pulse 0.8s ease-in-out infinite;
}

.particle-dust {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(1px);
}

/* Floating text */
.floating-text {
    font-family: 'Playfair Display', serif;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

/* Dynamic shadows */
.box-shadow-animated {
    box-shadow: 
        0 10px 30px -10px rgba(0,0,0,0.2),
        inset 0 -5px 20px -5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease-out;
}
/* Custom classes */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
}

.glow-particle {
    position: absolute;
    background-color: rgba(255, 240, 170, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
    box-shadow: 0 0 10px 2px rgba(255, 240, 170, 0.8);
}