:root {
    --plum-50: #fdf4f6;
    --plum-600: #b93551;
    --plum-950: #3a0e1a;
    --amber-400: #ffc430;
    --amber-500: #f5a623;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--plum-50);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--plum-600), var(--amber-500));
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(245, 166, 35, 0.3);
    color: var(--plum-950);
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--amber-500);
    outline-offset: 2px;
}

/* Gallery swiper overrides */
.gallerySwiper .swiper-pagination {
    bottom: 0 !important;
}

.gallerySwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--amber-400);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.gallerySwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--amber-400);
}

/* Subtle grain texture overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}

/* Animated gradient border for cards on hover */
.reveal {
    will-change: opacity, transform;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .swiper-slide .group img {
        transition: none;
    }
    #backToTop {
        transition: none;
    }
}
