/* Custom styles for Pick Ur Pots Stephenville */

/* Hero clip path */
.clip-hero-right {
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

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

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

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

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

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

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

/* 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;
    }
    
    .animate-marquee {
        animation: none;
    }
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu transition */
#mobileMenu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: auto;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

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

/* Geometric decorations */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clip-hero-right {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
    
    #hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

/* Print styles */
@media print {
    #navbar,
    #backToTop,
    .animate-marquee {
        display: none;
    }
}
