:root {
    --jackfruit-gold: #D4AF37;       /* Rich Metallic Gold */
    --gold-hover: #F3C63F;           /* Lighter Gold for Hover */
    --leaf-green: #2C5E3B;           /* Deep Organic Green */
    --rich-forest: #152516;          /* Dark Luxury Green-Black */
    --organic-cream: #FAF8F5;        /* Luxury Soft Background Cream */
    --cream-light: #FFFFFF;          /* Pure White for Cards */
    --text-dark: #1F2421;            /* Dark Slate/Charcoal for text */
    --text-light: #FAF8F5;           /* Off-white text */
    --dark-charcoal: #1E1E1E;        /* Pure Charcoal */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(212, 175, 55, 0.2);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 20px 45px rgba(212, 175, 55, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--organic-cream);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--rich-forest);
    line-height: 1.3;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    background: rgba(21, 37, 22, 0.96); /* Dark forest background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

nav.shrunk {
    padding: 0.9rem 5%;
    background: rgba(21, 37, 22, 0.98);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--jackfruit-gold);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--gold-hover);
    transform: scale(1.02);
}

.logo i {
    font-size: 2rem;
    animation: rotateLeaf 6s ease-in-out infinite alternate;
}

@keyframes rotateLeaf {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(15deg); }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: rgba(250, 248, 245, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--jackfruit-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--jackfruit-gold);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--jackfruit-gold);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Sections */
section {
    padding: 9rem 5% 7rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 1.2rem;
    color: var(--rich-forest);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--jackfruit-gold), var(--leaf-green));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #5A605B;
    margin-bottom: 4.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 2.6rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--jackfruit-gold);
    color: var(--rich-forest);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
    border: 2px solid var(--jackfruit-gold);
    color: var(--jackfruit-gold);
    background: transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: var(--jackfruit-gold);
    color: var(--rich-forest);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.btn-dark {
    background: var(--rich-forest);
    color: var(--text-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 6px 20px rgba(21, 37, 22, 0.15);
}

.btn-dark:hover {
    background: #1e3320;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(21, 37, 22, 0.25);
}

/* General Cards */
.card {
    background: var(--cream-light);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--jackfruit-gold);
    box-shadow: var(--hover-shadow);
}

/* Footer styling */
footer {
    background: var(--rich-forest);
    color: rgba(250, 248, 245, 0.85);
    padding: 6rem 5% 3rem;
    border-top: 3px solid var(--jackfruit-gold);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 4rem;
}

.footer-section h3 {
    color: var(--jackfruit-gold);
    margin-bottom: 1.8rem;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
}

.footer-section p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.footer-section p i {
    color: var(--jackfruit-gold);
    margin-right: 0.8rem;
    width: 20px;
}

.footer-section a {
    color: rgba(250, 248, 245, 0.75);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--jackfruit-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background: rgba(250, 248, 245, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-smooth);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-icons a:hover {
    background: var(--jackfruit-gold);
    color: var(--rich-forest);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 248, 245, 0.1);
    padding-top: 2.5rem;
    text-align: center;
    color: rgba(250, 248, 245, 0.5);
    font-size: 0.95rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Video Cards and Modals */
.video-card {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--jackfruit-gold);
    background-color: var(--rich-forest);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.video-card:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(21, 37, 22, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 2px solid var(--jackfruit-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jackfruit-gold);
    font-size: 2rem;
    transition: var(--transition-smooth);
    z-index: 2;
}

.video-card:hover .play-button {
    background: var(--jackfruit-gold);
    color: var(--rich-forest);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    z-index: 2;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--jackfruit-gold);
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--jackfruit-gold);
    transform: scale(1.1);
}

/* Sourcing Gallery & Filters */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--jackfruit-gold);
    background: transparent;
    color: var(--rich-forest);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--jackfruit-gold);
    color: var(--rich-forest);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    display: block;
    animation: scaleUp 0.5s ease forwards;
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Extended Products Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 4rem auto 0;
}

.portfolio-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--jackfruit-gold);
    box-shadow: var(--hover-shadow);
}

.portfolio-card-img {
    height: 260px;
    width: 100%;
    overflow: hidden;
    background-color: var(--organic-cream);
    border-bottom: 2px solid var(--jackfruit-gold);
}

.portfolio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.portfolio-card-content {
    padding: 2.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card-content h3 {
    font-size: 1.6rem;
    color: var(--rich-forest);
    margin-bottom: 0.6rem;
}

.portfolio-card-content .origin {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--jackfruit-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.portfolio-card-content p {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.portfolio-card-content .btn-secondary {
    align-self: flex-start;
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

@media (max-width: 968px) {
    .media-gallery-grid, .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .media-gallery-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive grid */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(21, 37, 22, 0.98);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 0;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(250, 248, 245, 0.08);
    }

    .nav-links a {
        display: block;
        padding: 1.3rem 0;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    section {
        padding: 7rem 5% 5rem;
    }

    .section-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}
