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

/* Hero Section with Slideshow */
.hero-slideshow {
    position: relative;
    height: 100vh;
    /* Fallback */
    height: 100svh;
    /* Mobile modern */
    overflow: hidden;
    margin-bottom: 4rem;
    z-index: 1;
    background: linear-gradient(135deg, #FF6B6B, #FFB88C);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    margin-top: -76px;
    /* Consistency with home page */
    padding-top: 76px;
    /* Ensure content is visible */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    border-radius: 20px;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease, transform 6s ease;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 1000px;
    margin: 0 auto;
    height: 100vh;
    /* Fallback */
    height: 100svh;
    /* Mobile modern */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease, transform 6s ease;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 1000px;
    margin: 0 auto;
    height: 100vh;
    /* Fallback */
    height: 100svh;
    /* Mobile modern */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease forwards;
    letter-spacing: 0.1em;
    font-weight: 600;
    /* Gradient text with fallback */
    background: linear-gradient(135deg, #FF6B6B, #FFB88C);
    -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);
}

.hero-subtitle {
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.3s forwards;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #f1f5f9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

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

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.explore-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Spices Section */
.spices-section {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
    background: #ffffff;
}

.spice-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.spice-card {
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    overflow: hidden;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.spice-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.spice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(45deg, #FF6B6B33, #FFB88C33);
    -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;
    display: none;
}

.spice-image {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.spice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.spice-card:hover .spice-image img {
    transform: scale(1.05);
}

.spice-content {
    position: relative;
    z-index: 1;
}

.spice-title {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #FF6B6B, #FFB88C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.spice-origin {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spice-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2rem;
}

.details-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #FF6B6B;
    text-decoration: none;
    background: transparent;
    border: 2px solid #FF6B6B;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.details-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF6B6B, #FFB88C);
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

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

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

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

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

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .spice-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

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

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .spice-card {
        padding: 1.5rem;
    }

    .spice-image {
        height: 250px;
    }

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

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

    .spice-image {
        height: 200px;
    }

    .spice-title {
        font-size: 1.8rem;
    }
}

/* Section Heading */
.section-heading {
    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, #FFB88C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
}