/* KRALSKA VODKA Custom Styles */

/* Custom fonts - You would need to add the actual font files */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background-color: #000;
    overflow-x: hidden;
}

/* Header transparency by default */
#main-header {
    background-color: transparent;
}

#main-header.bg-black {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Main Navigation Animation */
.main-nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.main-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav-link:hover {
    color: #fff;
}

.main-nav-link:hover::after,
.main-nav-link.hovered::after {
    width: 70%;
}

.main-nav-link.active {
    color: #fff;
    font-weight: 500;
}

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

/* Mobile Navigation Animation */
.mobile-nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding-left: 0;
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
}

#mobile-menu.show .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

#mobile-menu.show .mobile-nav-link:nth-child(1) { transition-delay: 0.3s; }
#mobile-menu.show .mobile-nav-link:nth-child(2) { transition-delay: 0.4s; }
#mobile-menu.show .mobile-nav-link:nth-child(3) { transition-delay: 0.5s; }
#mobile-menu.show .mobile-nav-link:nth-child(4) { transition-delay: 0.6s; }
#mobile-menu.show .mobile-nav-link:nth-child(5) { transition-delay: 0.7s; }

.mobile-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: -10px;
    border-left: 2px solid #fff;
    transition: all 0.3s ease;
    opacity: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #fff;
    padding-left: 20px;
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
    opacity: 1;
}

/* Mobile menu animation */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    z-index: 1000;
}

#mobile-menu.show {
    transform: translateX(-100%);
    opacity: 1;
}

.mobile-menu-content {
    padding: 2rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.2s;
}

#mobile-menu.show .mobile-menu-content {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile menu toggle button animation */
.mobile-menu-toggle {
    position: relative;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active {
    transform: rotate(90deg);
}

@media (min-width: 769px) {
    #mobile-menu {
        display: none;
    }
}

/* Smooth transitions */
.transition {
    transition: all 0.3s ease;
}

/* Hero section video background */
.hero-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

/* Scroll indicator animation */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Parallax effect for story section */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Button styles */
.btn-kralska {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.btn-kralska:hover {
    background-color: #fff;
    color: #000;
}

/* Inverse button for light backgrounds */
.btn-kralska-inverse {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 300;
    transition: all 0.3s ease;
}

.btn-kralska-inverse:hover {
    background-color: #000;
    color: #fff;
}

/* Bottle showcase section */
.bottle-showcase {
    position: relative;
}

.bottle-image {
    transition: transform 0.5s ease;
}

.bottle-image:hover {
    transform: scale(1.05);
}

/* Cocktail Filter Buttons Animation */
.cocktail-filter {
    position: relative;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-bottom: 6px; /* Space for the border */
    overflow: hidden;
}

.cocktail-filter::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.cocktail-filter:hover {
    color: #fff;
}

.cocktail-filter:hover::after {
    width: 80%;
}

.cocktail-filter.active {
    color: #fff;
    font-weight: 500;
}

.cocktail-filter.active::after {
    width: 100%;
}

/* Cocktail card hover effect */
.cocktail-card {
    position: relative;
    overflow: hidden;
    /* Add transition for filtering */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    opacity: 1;
    transform: scale(1);
}

/* Style for hidden state during filtering */
.cocktail-card.is-hidden {
    opacity: 0;
    transform: scale(0.95);
    /* Use pointer-events none so hidden items aren't interactive */
    pointer-events: none;
    /* Hide from the layout after animation completes */
    position: absolute;
    z-index: -1;
}

.cocktail-image {
    transition: all 0.5s ease;
}

.cocktail-card:hover .cocktail-image {
    transform: scale(1.1);
}

.cocktail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Initial subtle gradient */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7) 80%); 
    /* Height adjusts to content, padding determines initial visible area */
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Content at bottom */
    padding: 1rem; /* Adjust padding */
    opacity: 1; /* Visible by default */
    transition: all 0.4s ease;
}

/* Style for elements inside overlay */
.cocktail-overlay h3 {
    color: #fff;
    margin-bottom: 0; /* Remove default margin if needed */
    transition: all 0.3s ease; /* Smooth transition for text potentially */
}

/* Hide description and button initially */
.cocktail-overlay p,
.cocktail-overlay .view-recipe {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: opacity 0.3s ease, max-height 0.4s ease, margin-top 0.3s ease;
}

/* On hover, expand overlay and reveal details */
.cocktail-card:hover .cocktail-overlay {
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); /* Darken gradient on hover */
}

.cocktail-card:hover .cocktail-overlay h3 {
    margin-bottom: 0.5rem; /* Add space below title when expanded */
}

.cocktail-card:hover .cocktail-overlay p,
.cocktail-card:hover .cocktail-overlay .view-recipe {
    opacity: 1;
    max-height: 100px; /* Allow space for content */
    margin-top: 0.5rem; /* Add space above description/button */
}


/* Adjust button style for better visibility if needed */
.cocktail-overlay .view-recipe {
    align-self: flex-start; /* Align button to the start */
    /* margin-top: 1rem; Removed to use transition */
}

/* Style for the large hero logo */
#hero-logo {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)); /* Subtle white glow */
    /* You could also add opacity for transparency: */
    /* opacity: 0.9; */
}

/* Form styling */
.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Gallery layout improvements */
.cocktail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    min-height: 200px; /* Minimum height to prevent layout collapse */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* KRALSKA VODKA Products Carousel */
.products-carousel {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.products-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.product-slide {
    flex: 0 0 100%;
    text-align: center;
    opacity: 0.7;
    transform: scale(0.85);
    transition: all 0.5s ease;
}

.product-slide.active {
    opacity: 1;
    transform: scale(1);
}

.product-slide img {
    max-height: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

.product-slide .product-info {
    margin-top: 20px;
}

.product-slide h3 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-slide h4 {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .product-slide img {
        max-height: 400px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Class to apply animation - initially hidden */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out; /* Simple opacity transition */
}

/* Class added by JS when element is visible */
.animate-on-scroll.is-visible {
    opacity: 1;
    /* Remove the keyframe animation, rely on transition */
    /* animation: fadeIn 0.8s ease forwards; */ 
}

/* Ensure product image hover still works smoothly */
.product-item img {
    transition: transform 0.3s ease; /* Keep transform transition for hover */
}

.product-item:hover img {
    transform: scale(1.05); /* Keep hover effect */
}

/* Product Collection Animations */
.product-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for featured products */
.product-item:nth-child(1) { transition-delay: 0.1s; }
.product-item:nth-child(2) { transition-delay: 0.2s; }
.product-item:nth-child(3) { transition-delay: 0.3s; }
.product-item:nth-child(4) { transition-delay: 0.4s; }
.product-item:nth-child(5) { transition-delay: 0.5s; }

/* Product hover effects */
.product-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.product-item:hover img {
    transform: translateY(-10px) scale(1.02);
    filter: brightness(1.1);
}

.product-item h3 {
    position: relative;
    display: inline-block;
}

.product-item h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.product-item:hover h3::after {
    width: 100%;
}

/* Flavor carousel animations */
.flavor-slide {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flavor-slide.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for flavor slides */
.flavor-slide:nth-child(1) { transition-delay: 0.2s; }
.flavor-slide:nth-child(2) { transition-delay: 0.3s; }
.flavor-slide:nth-child(3) { transition-delay: 0.4s; }
.flavor-slide:nth-child(4) { transition-delay: 0.5s; }
.flavor-slide:nth-child(5) { transition-delay: 0.6s; }
.flavor-slide:nth-child(6) { transition-delay: 0.7s; }

/* Carousel navigation button animations */
.flavor-prev,
.flavor-next {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.flavor-prev:hover,
.flavor-next:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.9);
}

/* More Flavors title animation */
.animate-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.animate-title.is-visible {
    opacity: 1;
    transform: translateY(0);
} 