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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

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

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

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

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

/* Selection */
::selection {
    background: #C06C44;
    color: #FDFBF8;
}

/* Navigation */
.nav-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C06C44;
    transition: width 0.3s ease;
}

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

/* Floating Animations */
.float-slow {
    animation: float 8s ease-in-out infinite;
}

.float-medium {
    animation: float 6s ease-in-out infinite reverse;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(2deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Scroll Indicator */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* Reveal Animations - Progressive Enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

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

/* Focus Styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

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

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

/* Image Aspect Ratio Fallback */
.aspect-\[4\/3\] {
    aspect-ratio: 4/3;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3/4;
}

.aspect-square {
    aspect-ratio: 1/1;
}

.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

/* Smooth Transitions for All Interactive Elements */
a, button {
    transition: all 0.2s ease;
}

img {
    transition: transform 0.5s ease;
}

/* Print Styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
