/* Custom styles for Erikas Five */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --midnight: #0d1628;
    --midnight-light: #162038;
    --mint: #4ade80;
    --mint-light: #86efac;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--midnight);
    line-height: 1.6;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(13, 22, 40, 0.08);
}

nav.scrolled .text-midnight {
    color: var(--midnight) !important;
}

nav.scrolled a:not(.bg-midnight):not(.text-mint) {
    color: var(--midnight) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--midnight);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--midnight-light);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

/* Hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

/* Gallery hover */
.group:hover img {
    transform: scale(1.05);
}

img {
    transition: transform 0.7s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    img {
        transition: none;
    }
}
