/* ========================================
   Skanecz Pincészet - Advanced Effects & Animations
   Modern CSS enhancements for professional look
   ======================================== */

/* ========================================
   0. Global Enhancements
   ======================================== */

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Optimize font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   1. Smooth Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shine {
    from {
        left: -100%;
    }
    to {
        left: 100%;
    }
}

/* Animation Classes */
.animate-fadeIn {
    animation: fadeIn 1s ease-in-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

.animate-zoomIn {
    animation: zoomIn 0.6s ease-out;
}

.animate-slideInUp {
    animation: slideInUp 0.8s ease-out;
}

/* Staggered delays for sequential animations */
.delay-1 { animation-delay: 0.1s; animation-fill-mode: backwards; }
.delay-2 { animation-delay: 0.2s; animation-fill-mode: backwards; }
.delay-3 { animation-delay: 0.3s; animation-fill-mode: backwards; }
.delay-4 { animation-delay: 0.4s; animation-fill-mode: backwards; }
.delay-5 { animation-delay: 0.5s; animation-fill-mode: backwards; }

/* ========================================
   2. Hover Effects
   ======================================== */

/* Image Zoom on Hover */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.6s ease;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* Card Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.shine-effect:hover::after {
    left: 100%;
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::before {
    width: 300px;
    height: 300px;
}

/* ========================================
   3. Parallax Effects
   ======================================== */

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.6);
}

/* ========================================
   4. Enhanced Typography
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-soft {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-shadow-strong {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   5. Glass Morphism
   ======================================== */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   6. Gradient Overlays
   ======================================== */

.gradient-overlay-primary {
    position: relative;
}

.gradient-overlay-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 35, 50, 0.9), rgba(201, 169, 97, 0.7));
    z-index: 1;
}

.gradient-overlay-dark {
    position: relative;
}

.gradient-overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.4), rgba(26, 26, 26, 0.8));
    z-index: 1;
}

/* ========================================
   7. Custom Shapes & Dividers
   ======================================== */

.wave-divider {
    position: relative;
}

.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff"></path></svg>') no-repeat;
    background-size: cover;
}

/* ========================================
   8. Loading & Skeleton Effects
   ======================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   9. Enhanced Cards
   ======================================== */

.card-modern {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-wine {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(139, 35, 50, 0.15);
}

.card-wine::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(139, 35, 50, 0.9), transparent);
    transition: height 0.4s ease;
}

.card-wine:hover::after {
    height: 100%;
}

/* ========================================
   10. Scroll Animations (On Scroll Reveal)
   ======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   11. Image Filters & Effects
   ======================================== */

.img-sepia:hover {
    filter: sepia(0.6);
    transition: filter 0.4s ease;
}

.img-vintage {
    filter: contrast(1.1) brightness(1.1) saturate(0.8);
}

.img-vintage:hover {
    filter: contrast(1.2) brightness(1.2) saturate(1);
}

.img-overlay-gradient {
    position: relative;
}

.img-overlay-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(139, 35, 50, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-overlay-gradient:hover::before {
    opacity: 1;
}

/* ========================================
   12. Decorative Elements
   ======================================== */

.decorative-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 20px auto;
}

.decorative-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.decorative-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: inline-block;
    animation: pulse 2s infinite;
}

.decorative-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.decorative-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ========================================
   13. Responsive Enhancements
   ======================================== */

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
    
    .hover-lift:hover {
        transform: translateY(-5px);
    }
    
    .card-modern:hover {
        transform: translateY(-10px) scale(1.01);
    }
}

/* ========================================
   14. Performance Optimizations
   ======================================== */

.will-animate {
    will-change: transform, opacity;
}

.gpu-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
