/* Custom styles for Peacefully UPcycled */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

/* Geometric shape subtle animation */
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5px, -8px) rotate(2deg); }
    50% { transform: translate(-3px, 5px) rotate(-1deg); }
    75% { transform: translate(8px, 3px) rotate(1deg); }
}

.hero-geo {
    animation: drift 12s ease-in-out infinite;
}

.hero-geo:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 15s;
}

.hero-geo:nth-child(3) {
    animation-delay: -6s;
    animation-duration: 18s;
}

.hero-geo:nth-child(4) {
    animation-delay: -2s;
    animation-duration: 14s;
}

.hero-geo:nth-child(5) {
    animation-delay: -8s;
    animation-duration: 20s;
}

.hero-geo:nth-child(6) {
    animation-delay: -4s;
    animation-duration: 16s;
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Scroll reveal (progressive enhancement - only when JS runs) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* 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;
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

/* Selection color */
::selection {
    background: #F4D9C4;
    color: #7B2D3B;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}
