/* ========================================
   HARVEST PAGE - DRAMATIC ANIMATIONS
   Enhanced animations with perfect timing
   ======================================== */

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* ========================================
   GLOBAL ANIMATION SETTINGS
   ======================================== */

/* Dramatic Entrance Animations */
@keyframes dramaticFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
        filter: blur(8px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes dramaticFadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotate(-5deg);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0);
        filter: blur(0);
    }
}

@keyframes dramaticFadeInRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotate(5deg);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0);
        filter: blur(0);
    }
}

@keyframes dramaticScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
        filter: blur(10px);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
        filter: blur(0);
    }
}

@keyframes floatDramatic {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(2deg);
    }
    50% {
        transform: translateY(-45px) rotate(0deg);
    }
    75% {
        transform: translateY(-30px) rotate(-2deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    padding: 20px 0 !important;
}

/* Navigation links - better visibility */
.nav-menu a {
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Alternative class name support */
.nav-link {
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.nav-menu a::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-link:hover {
    transform: translateY(-3px) !important;
}

/* Scrolled state - dark text */
.navbar.scrolled .nav-menu a::after {
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent) !important;
}

/* ========================================
   HERO SECTION ENHANCEMENTS
   ======================================== */

.hero {
    position: relative;
    transition: all 0.6s ease;
}

/* Parallax Effect on Hero Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Enhanced Hero Title Animation */
.hero-title {
    animation: dramaticFadeInUp 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.hero-description {
    animation: dramaticFadeInUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards !important;
}

.hero-contact {
    animation: dramaticFadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards !important;
}

/* Enhanced CTA Button */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    animation: dramaticScaleIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
    opacity: 0;
}

.btn-primary.animated {
    opacity: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.7s ease, height 0.7s ease;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-8px) scale(1.08) !important;
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.6) !important;
}

.btn-primary:active {
    transform: translateY(-4px) scale(1.04) !important;
}

/* Hero Badge Enhancement */
.hero-badge {
    animation: floatDramatic 5s ease-in-out infinite !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-badge:hover {
    animation-play-state: paused;
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

/* ========================================
   SECTION TRANSITIONS
   ======================================== */

.section {
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Section Entry Effect */
.section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.03), transparent);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.section.in-view::before {
    opacity: 1;
}

/* Section Titles Enhancement */
.section-title,
.products-hero-title,
.fullwidth-section-title {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
}

.section-title.animate,
.products-hero-title.animate,
.fullwidth-section-title.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Animated Underline for Titles */
.section-title::after,
.fullwidth-section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    margin: 20px auto 0;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
    border-radius: 2px;
}

.section-title.animate::after,
.fullwidth-section-title.animate::after {
    width: 200px;
}

/* ========================================
   ABOUT SECTION CARDS
   ======================================== */

.about-card {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-20px) scale(1.05) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4) !important;
}

.about-card-icon {
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.about-card:hover .about-card-icon {
    transform: scale(1.3) rotate(15deg) !important;
    filter: drop-shadow(0 10px 25px rgba(212, 175, 55, 0.5));
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.product-card {
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    opacity: 0;
    transform: translateY(60px) scale(0.9);
}

.product-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.product-card:hover {
    transform: translateY(-25px) scale(1.06) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4) !important;
}

.product-card:hover .product-card-image {
    transform: scale(1.15) !important;
}

.product-card-image {
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Product Overlay Enhancement */
.product-card-overlay {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateY(30px);
}

.product-card:hover .product-card-overlay {
    transform: translateY(0);
}

.product-card-title {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s !important;
    transform: translateY(20px);
}

.product-card:hover .product-card-title {
    transform: translateY(0);
}

.product-card-description {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s !important;
    transform: translateY(20px);
}

.product-card:hover .product-card-description {
    transform: translateY(0);
}

/* ========================================
   FULL WIDTH IMAGES
   ======================================== */

.fullwidth-image-small {
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    opacity: 0;
    transform: scale(0.85) translateY(50px);
}

.fullwidth-image-small.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fullwidth-image-small:hover {
    transform: scale(1.03) translateY(-15px) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5) !important;
}

.fullwidth-image-small:hover img {
    transform: scale(1.1) !important;
    filter: brightness(1.1) !important;
}

.fullwidth-image-overlay {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-item {
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    opacity: 0;
    transform: scale(0.8) translateY(40px) rotate(5deg);
}

.gallery-item.animate {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0);
}

.gallery-item:hover {
    transform: scale(1.08) translateY(-15px) rotate(-2deg) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.2) rotate(3deg) !important;
    filter: brightness(1.15) saturate(1.2) !important;
}

.gallery-item img {
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ========================================
   FOOTER ENHANCEMENTS
   ======================================== */

.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    animation: slideInLine 3s ease-in-out infinite;
}

@keyframes slideInLine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

.footer-links a {
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: inline-block;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-links a:hover {
    color: var(--accent-yellow) !important;
    transform: translateX(10px);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    animation: pulseGlow 2s ease-in-out infinite;
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.15) rotate(360deg) !important;
    animation: none;
}

.back-to-top:active {
    transform: translateY(-4px) scale(1.08) !important;
}

/* ========================================
   STAGGER ANIMATION DELAYS
   ======================================== */

/* For product cards */
.product-card:nth-child(1) { transition-delay: 0.1s; }
.product-card:nth-child(2) { transition-delay: 0.2s; }
.product-card:nth-child(3) { transition-delay: 0.3s; }
.product-card:nth-child(4) { transition-delay: 0.4s; }
.product-card:nth-child(5) { transition-delay: 0.5s; }
.product-card:nth-child(6) { transition-delay: 0.6s; }

/* For gallery items */
.gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-item:nth-child(6) { transition-delay: 0.3s; }
.gallery-item:nth-child(7) { transition-delay: 0.35s; }
.gallery-item:nth-child(8) { transition-delay: 0.4s; }

/* For about cards */
.about-card:nth-child(1) { transition-delay: 0.1s; }
.about-card:nth-child(2) { transition-delay: 0.2s; }
.about-card:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .nav-link:hover {
        transform: translateY(-2px) !important;
    }
    
    .btn-primary:hover {
        transform: translateY(-5px) scale(1.05) !important;
    }
    
    .about-card:hover,
    .product-card:hover,
    .gallery-item:hover {
        transform: scale(1.03) !important;
    }
    
    .fullwidth-image-small:hover {
        transform: scale(1.02) translateY(-10px) !important;
    }
}

/* ========================================
   SCROLL PROGRESS INDICATOR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-orange));
    z-index: 9999;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
