/* Custom styles for Prickly Pear Boutique */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #3b0764;
}
::-webkit-scrollbar-thumb {
    background: #7e22ce;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* Navigation */
.nav-fixed {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(126, 34, 206, 0.1);
    transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 4px 20px rgba(59, 7, 100, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-nav-link {
    position: relative;
}

.menu-line {
    display: block;
}

body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Marquee */
.marquee-track {
    animation: marquee 30s linear infinite;
}

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

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

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Collection cards */
.collection-card {
    box-shadow: 0 4px 20px rgba(59, 7, 100, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 7, 100, 0.2);
}

/* Gallery scroll */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 20s linear infinite;
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
}

.geo-circle-1 {
    top: 15%;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 3px solid #fbbf24;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: #a855f7;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-triangle {
    top: 60%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #fbbf24;
    opacity: 0.08;
    animation: rotate 20s linear infinite;
}

.geo-rect {
    top: 40%;
    left: 8%;
    width: 80px;
    height: 80px;
    background: #7e22ce;
    transform: rotate(45deg);
    opacity: 0.06;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track,
    .animate-scroll,
    .geo-shape {
        animation: none;
    }
    
    .collection-card {
        transition: none;
    }
    
    .collection-card:hover {
        transform: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-circle-1,
    .geo-circle-2,
    .geo-triangle,
    .geo-rect {
        display: none;
    }
}
