/* Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(120, 31, 55, 0.15);
    color: #781f37;
}

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

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

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

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

/* Marquee Animation */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Bubble Float Animation */
.bubble-float {
    animation: bubbleFloat 4s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.7;
    }
}

/* Feature Card Hover */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card:hover .w-20 {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(255, 248, 249, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(120, 31, 55, 0.08);
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .marquee-track {
        animation: none;
    }
    
    .bubble-float {
        animation: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .feature-card:hover .w-20 {
        transform: none;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #781f37;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
