/* Custom animations and utility styles */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

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

@keyframes geo-float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes geo-float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 15px) rotate(-120deg); }
    66% { transform: translate(15px, -25px) rotate(-240deg); }
}

@keyframes geo-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Geometric shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 30, 72, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: geo-float-1 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 116, 146, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    border-radius: 50%;
    animation: geo-float-2 15s ease-in-out infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(184, 30, 72, 0.06);
    top: 25%;
    left: 8%;
    border-radius: 24px;
    transform: rotate(45deg);
    animation: geo-float-3 12s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 77, 117, 0.06);
    top: 60%;
    right: 10%;
    animation: geo-float-1 18s ease-in-out infinite;
    animation-delay: 2s;
}

.shape-ring-1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(184, 30, 72, 0.08);
    border-radius: 50%;
    bottom: 20%;
    right: 5%;
    animation: geo-float-2 16s ease-in-out infinite;
    animation-delay: 1s;
}

.shape-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(184, 30, 72, 0.12) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 35%;
    right: 20%;
    animation: geo-float-3 14s ease-in-out infinite;
    animation-delay: 3s;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Mobile menu */
.mobile-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(184, 30, 72, 0.08);
}

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

/* Selection color */
::selection {
    background: rgba(184, 30, 72, 0.2);
    color: #3a0a1a;
}

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

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

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

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

/* Focus styles */
*:focus-visible {
    outline: 2px solid #b81e48;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    .shape-square-1 {
        width: 80px;
        height: 80px;
    }
    .shape-triangle-1 {
        border-left-width: 40px;
        border-right-width: 40px;
        border-bottom-width: 69px;
    }
    .shape-ring-1 {
        width: 120px;
        height: 120px;
    }
}
