/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5fb;
}
::-webkit-scrollbar-thumb {
    background: #dbaad6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c478be;
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a84fa0, #f5a623);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

.nav-link::after {
    transition: width 0.3s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 245, 251, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(123, 45, 107, 0.08);
}

/* Mobile Menu */
.mobile-link {
    position: relative;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #a84fa0;
    padding-left: 8px;
}

/* Hero floating images */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(-6deg); }
    50% { transform: translateY(-15px) rotate(-4deg); }
}

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

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(8deg); }
    50% { transform: translateY(-12px) rotate(10deg); }
}

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

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

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

/* Fade in animation for hero */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Feature cards */
.feature-card {
    transition: transform 0.3s ease;
}

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

/* Menu tabs */
.menu-tab {
    background: transparent;
    color: #7b2d6b;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: linear-gradient(135deg, #7b2d6b, #a84fa0);
    color: white;
    box-shadow: 0 4px 15px rgba(123, 45, 107, 0.3);
}

.menu-tab:not(.active):hover {
    background: #f5e9f5;
}

/* Menu panel transitions */
.menu-panel {
    animation: panel-in 0.4s ease-out;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    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;
    }
}

/* Selection color */
::selection {
    background: #dbaad6;
    color: #2d0f27;
}

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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