/* Custom styles for Bridges Road Vineyard */

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

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #34c78b 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #5cd6a6 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #92e2c1 0%, transparent 70%);
    border-radius: 50%;
    top: 40%;
    right: 30%;
    animation: float 6s ease-in-out infinite;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #34c78b 0%, #16965e 100%);
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation: rotate 20s linear infinite;
}

.shape-rect-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #5cd6a6 0%, #34c78b 100%);
    top: 20%;
    left: 15%;
    transform: rotate(30deg);
    animation: rotate 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #92e2c1;
    opacity: 0.08;
    bottom: 10%;
    left: 20%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Product cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 18, 51, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card > *:not(img) {
    position: relative;
    z-index: 2;
}

/* Navbar transition */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav.scrolled .font-display {
    color: #1a237e !important;
}

nav.scrolled .text-midnight-600 {
    color: #4c6ef5 !important;
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .geometric-shape,
    .shape-circle-1,
    .shape-circle-2,
    .shape-circle-3,
    .shape-rect-1,
    .shape-rect-2,
    .shape-triangle-1 {
        animation: none;
    }
    
    .product-card img {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a237e;
}

/* Selection color */
::selection {
    background: #34c78b;
    color: white;
}
