/* Custom styles for Bluff Creek Distillery */

/* Geometric shape animations */
.geometric-shape {
    position: absolute;
    opacity: 0.06;
    animation: float 20s ease-in-out infinite;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5eead4, #2dd4bf);
    bottom: 15%;
    left: -3%;
    animation-delay: -5s;
}

.shape-square-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    top: 60%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: -10s;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #14b8a6;
    top: 25%;
    left: 5%;
    animation-delay: -7s;
    opacity: 0.04;
}

.shape-ring-1 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid #2dd4bf;
    bottom: 20%;
    right: 5%;
    animation-delay: -3s;
}

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(2, 6, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Spirit card hover effect */
.spirit-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

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

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

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

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

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-square-1 {
        width: 80px;
        height: 80px;
    }
    
    .shape-triangle-1 {
        border-left: 60px solid transparent;
        border-right: 60px solid transparent;
        border-bottom: 104px solid #14b8a6;
    }
    
    .shape-ring-1 {
        width: 120px;
        height: 120px;
    }
}
