/* Base styles */
.fruits-page {
    background: #ffffff;
    color: #1e293b;
    min-height: 100vh;
}

/* Hero Section */
.fruits-hero {
    position: relative;
    height: 100vh;
    /* Fallback */
    height: 100svh;
    /* Mobile modern */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -76px;
    padding-top: 76px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-text-wrapper {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title {
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    /* Gradient text with fallback */
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: #ff6b6b;
    /* Fallback color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ensure text is visible on image */
.hero-title {
    color: #fff;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.title-underline {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    margin: 1rem auto 2rem;
    animation: expandWidth 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Add shadow to line */
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #f1f5f9;
    /* White/Light gray */
    margin-bottom: 3rem;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.6s forwards;
    justify-content: center;
    margin-top: 3rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn i {
    transition: transform 0.4s ease;
}

.hero-btn:hover i {
    transform: translateX(5px);
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.explore-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.explore-btn:hover::before {
    opacity: 1;
}

.explore-btn span,
.explore-btn i {
    position: relative;
    z-index: 1;
}

.explore-btn i {
    transition: transform 0.4s ease;
}

.explore-btn:hover i {
    transform: translateY(5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #1e293b;
    border-radius: 20px;
    position: relative;
    margin-bottom: 1rem;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #1e293b;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #1e293b;
    border-bottom: 2px solid #1e293b;
    transform: rotate(45deg);
    margin: -5px auto;
    animation: arrow 2s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes expandWidth {
    to {
        width: 100px;
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    50% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Fruits Showcase */
.fruits-showcase {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.fruit-item {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
        transform 1s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s ease;
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.fruit-item:last-child {
    margin-bottom: 0;
}

.fruit-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.fruit-item:nth-child(even) {
    direction: rtl;
}

.fruit-item:nth-child(even) .fruit-content {
    direction: ltr;
    text-align: right;
}

.fruit-item:nth-child(even) .fruit-image {
    direction: ltr;
}

.fruit-content {
    flex: 1;
    padding: 2rem 4rem;
    position: relative;
    z-index: 2;
}

.fruit-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, #ff6b6b, #4ecdc4);
    transition: height 1s ease;
}

.fruit-item.visible .fruit-content::before {
    height: 100%;
}

.fruit-title {
    font-size: 4.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: none;
}

.fruit-item.visible .fruit-title {
    opacity: 1;
    transform: translateY(0);
}

.fruit-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1);
    z-index: -1;
    transform: translateX(-10px) translateY(10px);
    filter: blur(1px);
    opacity: 0.5;
}

.fruit-item:hover .fruit-title::before {
    transform: translateX(-15px) translateY(15px);
    opacity: 0.8;
    transition: all 0.4s ease;
}

.fruit-item {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s ease;
}

.fruit-item:hover {
    background: #f8fafc;
    transform: translateX(0) scale(1.02);
}

.fruit-description {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 3rem;
    color: #475569;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    max-width: 90%;
    position: relative;
}

.fruit-description::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease 0.6s;
}

.fruit-item.visible .fruit-description {
    opacity: 1;
    transform: translateY(0);
}

.fruit-item.visible .fruit-description::after {
    transform: scaleX(1);
}

.fruit-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transform: perspective(1000px) rotateY(20deg);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    height: 500px;
    margin: 0 2rem;
    backdrop-filter: blur(10px);
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
}

.fruit-item:nth-child(even) .fruit-image {
    transform: perspective(1000px) rotateY(-20deg);
}

.fruit-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    will-change: opacity, transform;
}

.fruit-image::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(45deg, #ff6b6b33, #4ecdc433);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.fruit-image:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.fruit-image:hover::after {
    opacity: 1;
}

.fruit-item:hover .fruit-image {
    transform: perspective(1000px) rotateY(0) scale3d(1.02, 1.02, 1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.fruit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.6s ease;
    filter: brightness(0.95);
    will-change: transform, filter;
    transform-style: preserve-3d;
}

.fruit-item:hover .fruit-image img {
    transform: scale3d(1.1, 1.1, 1.1);
    filter: brightness(1.05);
}

/* Animated Button */
.view-details-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    color: #ff6b6b;
    background: transparent;
    border: 2px solid #ff6b6b;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.fruit-item.visible .view-details-btn {
    opacity: 1;
    transform: translateY(0);
}

.view-details-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    z-index: -1;
    border-radius: 52px;
    transform: scaleX(0.7) scaleY(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-details-btn:hover::before {
    transform: scale(1);
    opacity: 1;
}

.view-details-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #ff6b6b80, #4ecdc480);
    z-index: -2;
    border-radius: 54px;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.view-details-btn:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.view-details-btn:hover::after {
    opacity: 0.5;
}

.view-details-btn span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-details-btn i {
    transition: transform 0.3s ease;
}

.view-details-btn:hover i {
    transform: translateX(5px);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    width: 0;
    transition: width 0.1s ease;
}

/* Cursor Trail Effect */
.cursor-trail {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
    mix-blend-mode: screen;
    filter: blur(5px);
    transition: transform 0.1s ease;
}

/* Scramble Text Effect */
.scramble {
    color: #4ecdc4;
    font-weight: bold;
}

/* Enhanced Button Hover */
.view-details-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #ff6b6b);
    border-radius: 52px;
    z-index: -2;
    animation: borderGlow 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-details-btn:hover::after {
    opacity: 1;
}

@keyframes borderGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .fruit-title {
        font-size: 4rem;
    }

    .fruit-image {
        height: 450px;
        margin: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    .fruit-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        direction: ltr !important;
    }

    .fruit-content {
        text-align: center !important;
        padding: 1rem;
    }

    .fruit-image {
        height: 300px;
        transform: none !important;
    }

    .fruit-title {
        font-size: 2rem;
    }

    .product-origin {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .fruit-title {
        font-size: 3rem;
    }

    .fruit-description {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .fruit-image {
        height: 300px;
    }

    .cursor-trail {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .fruit-title {
        font-size: 2.5rem;
    }

    .fruit-item {
        padding: 2rem 1rem;
    }

    .fruit-image {
        height: 250px;
        border-radius: 15px;
    }

    .view-details-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Loading Animation - HIDDEN BY DEFAULT */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Section Header */
.section-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: #ffffff;
}

.section-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    margin: 0 auto;
    border-radius: 2px;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid #4ecdc4;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}