/* Custom styles for Shawnee Bluff Winery */

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

/* Base animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(15px) rotate(48deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Hero shapes */
.hero-shape {
    animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
    animation-delay: 0s;
}

.shape-circle-2 {
    animation-delay: -2s;
    animation-duration: 10s;
}

.shape-diamond {
    animation: float-reverse 7s ease-in-out infinite;
}

.shape-triangle {
    animation: float 9s ease-in-out infinite;
    animation-delay: -1s;
}

.shape-rect {
    animation: float-reverse 6s ease-in-out infinite;
    animation-delay: -3s;
}

.shape-circle-3 {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Scroll reveal */
.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) {
    .hero-shape {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #115e59;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: white;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Form styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #2dd4bf, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.glass {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
