/* Custom styles to complement Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(166, 54, 87, 0.1);
}

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

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

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

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

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

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

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

/* Hamburger animation */
#menu-line-1.open {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-line-2.open {
    opacity: 0;
}

#menu-line-3.open {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Pulse animation for the live indicator */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(166, 54, 87, 0.1);
}

/* Image aspect ratio utilities */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure proper spacing on mobile */
@media (max-width: 640px) {
    .font-heading {
        line-height: 1.2;
    }
}
