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

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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2a2a2a;
}
::-webkit-scrollbar-thumb {
    background: #5d5d5d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8734a;
}

/* Selection */
::selection {
    background: rgba(232, 115, 74, 0.3);
    color: #f6f6f6;
}

/* Navigation transitions */
.nav-scrolled {
    background: rgba(42, 42, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(232, 115, 74, 0.1) !important;
}

.nav-scrolled .menu-line {
    background: #f6f6f6 !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Floating particles */
.particle {
    position: absolute;
    animation: float linear infinite;
}

.particle div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.float-1 {
    top: 20%;
    left: 10%;
    animation-duration: 8s;
}
.float-2 {
    top: 60%;
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
}
.float-3 {
    top: 30%;
    right: 15%;
    animation-duration: 10s;
    animation-delay: 1s;
}
.float-4 {
    top: 70%;
    right: 10%;
    animation-duration: 14s;
    animation-delay: 3s;
}
.float-5 {
    top: 45%;
    left: 5%;
    animation-duration: 9s;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-30px) translateX(15px);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-40px) translateX(5px);
        opacity: 0.9;
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

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

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

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

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

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

/* Pulse ring on decorative elements */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Product card shimmer */
.group::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 115, 74, 0.03), transparent);
    transition: left 0.7s;
}

.group:hover::after {
    left: 100%;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 70px;
    }

    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav, #contactForm, .particle {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
