/* Custom styles for My Hands-Your Memories */

:root {
    --plum-50: #faf0fc;
    --plum-100: #f5e0f5;
    --plum-200: #ebc0eb;
    --plum-300: #db95db;
    --plum-400: #c466c4;
    --plum-500: #a344a3;
    --plum-600: #863086;
    --plum-700: #6d256d;
    --plum-800: #5a1f5a;
    --plum-900: #4c1a4c;
    --plum-950: #2a0d2a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
}

* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.08);
}

#navbar.scrolled .nav-text,
#navbar.scrolled .nav-link,
#navbar.scrolled .nav-icon {
    color: #5a1f5a;
}

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7B2D8E, #D4A017);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6d256d, #b45309);
}

/* Selection color */
::selection {
    background: rgba(123, 45, 142, 0.2);
    color: #4c1a4c;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Menu items hover */
#menu li:hover {
    background: rgba(245, 224, 255, 0.3);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    transition: all 0.2s ease;
}

/* Gallery hover effect */
#gallery .aspect-square {
    cursor: pointer;
}

#gallery .aspect-square img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#gallery .aspect-square:hover img {
    transform: scale(1.1);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Form focus states */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.1);
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Hero text gradient animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation for CTA buttons */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(123, 45, 142, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(123, 45, 142, 0);
    }
}

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

@media (min-width: 641px) and (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    #navbar, #mobile-menu-btn, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
