/* Add this to the very top of your stylesheet */
html {
    scroll-behavior: smooth;
}

/* General Resets and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.btn-header {
    background-color: #6c757d;
    color: #fff;
    padding: 8px 18px;
    font-size: 0.9em;
}

.btn-header:hover {
    background-color: #5a6268;
}

.btn-learn-more {
    background-color: #ffc107;
    color: #333;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-learn-more:hover {
    background-color: #e0a800;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-view-details {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    padding: 8px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    width: fit-content;
    margin: 0 auto;
}

.btn-view-details:hover {
    background-color: #e2e6ea;
}

/* --- Header --- */
.main-header {
    background-color: #fff;
    padding: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

.logo img {
    height: 60px;
    padding-left: 0;
}

.nav-right-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 0;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav ul li a {
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #000;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    position: relative;
    margin-right: 10px;
    background: transparent;
    border: none;
    padding: 0;
}

/* Hamburger icon */
.hamburger-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.hamburger-icon .line + .line {
    margin-top: 6px;
}

.hamburger-icon .line {
    width: 100%;
    height: 2px;
    background-color: #555;
    border-radius: 4px;
    transform-origin: center;
}

/* Animation for hamburger menu */
.mobile-menu-toggle .line {
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Initial state for animation */
.hamburger-icon .line-1 {
    transform-origin: top left;
}

.hamburger-icon .line-3 {
    transform-origin: bottom left;
}

/* Animation when active */
.mobile-menu-toggle.active .line-1 {
    transform: rotate(45deg);
    width: 125%;
    margin-left: 3px;
}

.mobile-menu-toggle.active .line-2 {
    transform: translateX(-100%);
    opacity: 0;
}

.mobile-menu-toggle.active .line-3 {
    transform: rotate(-45deg);
    width: 125%;
    margin-left: 3px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    margin-bottom: -100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #fce7ba;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    text-align: left;
    padding-top: 50px;
    padding-bottom: 50px;
}

.hero-text {
    max-width: 55%;
}

.hero-text h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.3em;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 80%;
}

.hero-product-display {
    width: 280px;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-product-display img {
    width: 300%;
    height: 300%;
    object-fit: contain;
    padding: 5px;
}
/* --- Global Section Heading Style --- */
.section-heading {
    font-size: 2.5em;
    font-weight: 700;
    color: #095218; /* Or your preferred dark green color */
    text-align: center;
    margin-bottom: -240px;
    margin-top: 30px;
}

/* --- Products Section (with wave effect) --- */
.products-section {
    position: relative;
    padding: 100px 0 80px 0;
    z-index: 1;
}

.products-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#f8f9fa" fill-opacity="1" d="M0,160L48,170.7C96,181,192,203,288,197.3C384,192,480,160,576,160C672,160,768,192,864,186.7C960,181,1056,139,1152,138.7C1248,139,1344,181,1392,202.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center bottom / cover;
    z-index: 0;
    transform: translateY(-50%);
}

.product-grid-container {
    position: relative;
}

/* --- Flip Card Styles --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: -50px;
}

.flip-container {
    background-color: transparent;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.2;
    perspective: 1000px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.front {
    background-color: #fff;
    z-index: 2;
    transform: rotateY(0deg);
    padding: 0;
}

.back {
    background-color: #fff;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    color: #333;
}

.back-info {
    text-align: center;
    padding: 10px;
}

.back-info h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
}

.back-info p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.back .buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
}

.btn-call {
    background-color: #4CAF50;
    color: white;
    padding: 8px 30px;
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    border: none;
}

.btn-call:hover {
    background-color: #45a049;
}

.btn-cancel {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.btn-cancel:hover {
    background-color: #da190b;
}


/* Existing product card styles adjusted for flip */
.card-image {
    width: 100%;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
}

.card-info {
    padding: 15px 20px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.card-info h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
        color: #333;
        font-weight: 600;
    }
    
    @media (max-width: 768px) {
        .card-info {
            padding: 10px 15px 15px 15px;
        }
        
        .card-info h3 {
            font-size: 1em;
            margin-bottom: 8px;
        }
        
        .card-info .info-button {
            padding: 8px 15px;
            font-size: 0.8em;
            border-radius: 8px;
        }
        
        .back {
            padding: 15px;
        }
        
        .back-info h3 {
            font-size: 1.1em;
            margin-bottom: 8px;
        }
        
        .back-info p {
            font-size: 0.8em;
            margin-bottom: 15px;
        }
        
        .back .buttons {
            gap: 10px;
            padding: 0 15px;
        }
        
        .btn-call, .btn-cancel {
            padding: 8px 15px;
            font-size: 0.9em;
            border-radius: 6px;
        }
    }

.card-info .info-button {
    /* #fff30c; */
    background-color: #fff30cbf;
    color: #111110;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.card-info .info-button:hover {
    background-color: #d0d3d7;
}

/* Dots and Footer remain the same */
.product-grid-dots {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.product-grid-dots .dot {
    width: 10px;
    height: 10px;
    background-color: #ced4da;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-grid-dots .dot.active {
    background-color: #6c757d;
}

.main-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 40px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-item p {
    display: flex;
    align-items: center;
}

.footer-item i {
    margin-right: 12px;
    font-size: 1.2em;
    color: #ffc107;
}

.footer-item .sub-line {
    margin-left: 32px;
}

.qr-code img {
    background-color: #fff;
    padding: 5px;
    border-radius: 3px;
    height: 80px;
    width: 80px;
    object-fit: contain;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3em;
    }
    .hero-text p {
        font-size: 1.1em;
    }
    .main-nav ul {
        gap: 20px;
    }
    .hero-product-display {
        width: 220px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: flex-start;
        gap: 20px;
    }
    .logo {
        flex: 1;
    }
    .nav-right-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 250px;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-right-wrapper.active {
        transform: translateX(0);
    }
    .nav-right-wrapper .btn-header {
        margin-top: 20px;
        width: 80%;
    }
    .main-nav ul {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 25px;
        width: 100%;
        padding: 0 20px;
    }
    .main-nav ul li a {
        font-size: 1.1em;
    }
    .mobile-menu-toggle {
        display: block;
    }

    .container {
        padding: 0 15px;
    }
    .hero-section {
        height: 100vh;
        padding: 0;
        position: relative;
        overflow: hidden;
    }
    .hero-content {
        flex-direction: column;
        text-align: left;
        padding: 0;
        height: 100%;
        position: relative;
    }
    .hero-text {
        max-width: 60%;
        position: absolute;
        top: 35%;
        left: 20px;
        transform: translateY(-50%);
        z-index: 2;
    }
    .hero-text h1 {
        font-size: 2.2em;
        color: #fff;
        font-weight: 700;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        margin-bottom: 15px;
    }
    .hero-text p {
        font-size: 0.9em;
        color: #fff;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
        margin-bottom: 20px;
    }
    .btn-learn-more {
        padding: 10px 20px;
        font-size: 0.9em;
        position: absolute;
        bottom: 35%;
        left: 20px;
        z-index: 2;
        background-color: #ffc107;
        color: #333;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    .hero-product-display {
        display: none;
    }
    .hero-product-slider {
        width: 180px;
        height: auto;
        position: absolute;
        right: -15px;
        top: 45%;
        transform: translateY(-50%);
        z-index: 2;
    }
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;
    }
    .hero-bg img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
        min-height: 100vh;
    }
    /* Add curved yellow overlay at bottom */
    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background-color: #ffc107;
        border-radius: 100% 100% 0 0 / 100% 100% 0 0;
        transform: translateY(0);
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .main-nav ul li a {
        font-size: 0.85em;
    }
    .btn-header {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    .hero-text h1 {
        font-size: 2em;
    }
    .hero-text p {
        font-size: 0.9em;
    }
    .btn-learn-more {
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* --- About Us Section --- */
.about-us-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-us-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-us-text {
    flex: 1;
    text-align: left;
}

.about-us-text h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #458b3c; /* Consistent with the website's color palette */
    margin-bottom: 20px;
}

.about-us-text p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-us-image {
    flex: 1;
    max-width: 50%;
}

.about-us-image img {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Responsive adjustments for the About Us section */
@media (max-width: 768px) {
    .about-us-container {
        flex-direction: column;
        text-align: center;
    }
    .about-us-image {
        max-width: 100%;
        margin-top: 30px;
    }
}

/* jurney to the west  */
/* --- Journey Section --- */
.journey-section {
    padding: 80px 0;
    background-color: #f8fcf8; /* Light, organic background */
}

.journey-section h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #386641; /* Dark organic green */
    text-align: center;
    margin-bottom: 50px;
}

.journey-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Base style for all journey steps before animation */
.journey-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 15px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Animation for each step */
.journey-steps-container.active .journey-step {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.journey-steps-container.active .journey-step:nth-child(1) { transition-delay: 0.2s; }
.journey-steps-container.active .journey-step:nth-child(3) { transition-delay: 1.0s; }
.journey-steps-container.active .journey-step:nth-child(5) { transition-delay: 1.8s; }
.journey-steps-container.active .journey-step:nth-child(7) { transition-delay: 2.6s; }


/* The animated connecting line */
.journey-line {
    flex: 1;
    height: 4px;
    background-color: #e9ecef; /* Inactive line color */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out;
}
.journey-steps-container.active .journey-line {
    background-color: #8ac926; /* Active line color */
    transform: scaleX(1);
}
.journey-steps-container.active .journey-line:nth-of-type(1) { transition-delay: 0.8s; }
.journey-steps-container.active .journey-line:nth-of-type(2) { transition-delay: 1.6s; }
.journey-steps-container.active .journey-line:nth-of-type(3) { transition-delay: 2.4s; }


/* Icon styling and base animation */
.journey-icon {
    width: 100px;
    height: 100px;
    background-color: #fdfae6; /* Warm yellow background */
    border: 3px solid #8ac926; /* Organic green border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1;
}

.journey-icon i {
    font-size: 2.5em;
    color: #458b3c;
    line-height: 0;
}

/* Step 1: Sourcing Animation (leaves) */
.icon-sourcing .leaves {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 1.5em;
    color: #8ac926;
    animation: none;
}
.journey-steps-container.active .icon-sourcing .leaves {
    animation: growLeaves 1s ease-in-out infinite alternate;
}
@keyframes growLeaves {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Step 2: Production Animation (gears) */
.icon-production .gears {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="10" fill="%23458b3c"/><path d="M50 0 L58 10 L42 10 Z M50 100 L58 90 L42 90 Z M0 50 L10 58 L10 42 Z M100 50 L90 58 L90 42 Z" fill="%23458b3c"/></svg>') no-repeat center center;
    background-size: 80%;
    animation: none;
    opacity: 0;
}
.journey-steps-container.active .icon-production .gears {
    animation: gearSpin 2s linear infinite, fadeIn 1s forwards;
    animation-delay: 1.0s;
}
@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Step 3: Quality Assurance Animation (sparkle/checkmark) */
.icon-quality .checkmark-sparkle {
    position: absolute;
    font-size: 2em;
    color: #28a745;
    opacity: 0;
    transform: scale(0);
}
.journey-steps-container.active .icon-quality .checkmark-sparkle {
    animation: sparkleCheck 1s ease-out forwards;
    animation-delay: 2.0s;
}
@keyframes sparkleCheck {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Step 4: Timely Delivery Animation (truck) */
.icon-delivery i {
    animation: none;
}
.journey-steps-container.active .icon-delivery i {
    animation: truckMove 2s ease-in-out forwards;
    animation-delay: 2.8s;
}
@keyframes truckMove {
    0% { transform: translateX(-50px); }
    100% { transform: translateX(0px); }
}

.journey-info h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.journey-info p {
    font-size: 0.9em;
    color: #6c757d;
}

/* Responsive design for mobile screens */
@media (max-width: 768px) {
    .journey-steps-container {
        flex-direction: column;
        align-items: center;
    }
    .journey-line {
        width: 4px;
        height: 80px;
        flex: none;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.6s ease-out;
    }
    .journey-steps-container.active .journey-line {
        background-color: #8ac926;
        transform: scaleY(1);
    }
    .journey-step {
        flex-direction: row;
        text-align: left;
        margin-bottom: 20px;
        padding: 0;
    }
    .journey-icon {
        margin: 0 20px 0 0;
    }
    .journey-steps-container.active .journey-step:nth-child(1) { transition-delay: 0.2s; }
    .journey-steps-container.active .journey-step:nth-child(3) { transition-delay: 1.0s; }
    .journey-steps-container.active .journey-step:nth-child(5) { transition-delay: 1.8s; }
    .journey-steps-container.active .journey-step:nth-child(7) { transition-delay: 2.6s; }

    .journey-steps-container.active .journey-line:nth-of-type(1) { transition-delay: 0.8s; }
    .journey-steps-container.active .journey-line:nth-of-type(2) { transition-delay: 1.6s; }
    .journey-steps-container.active .journey-line:nth-of-type(3) { transition-delay: 2.4s; }
}





/* --- Footer Styles --- */
.main-footer {
    background-color: #333333; /* Dark gray background */
    color: #fff;
    padding: 60px 0 0;
    font-size: 1em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-item h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: #fdfae6; /* Warm yellow heading */
    margin-bottom: 20px;
}

.footer-item p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item a:hover {
    color: #8ac926; /* Lighter green on hover */
}

/* About Section */
.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}
.company-mission {
    font-style: italic;
    font-size: 0.9em;
}

/* Social Media Icons */
.social-links {
    margin-top: 20px;
}
.social-links a {
    font-size: 1.5em;
    margin-right: 15px;
}
.social-links a i {
    transition: transform 0.3s ease;
}
.social-links a:hover i {
    transform: scale(1.1);
}

/* Links Section */
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 8px;
}

/* Contact Section */
.footer-contact i {
    margin-right: 10px;
    color: #8ac926;
}
.sub-line {
    margin-left: 28px;
}

/* Legal Section */
.qr-code-img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}
.legal-links a {
    font-size: 0.9em;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: #222222; /* Slightly darker gray */
    padding: 15px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-item {
        margin-bottom: 30px;
    }
    .footer-about .social-links {
        justify-content: center;
    }
}




/* --- Hero Product Slider --- */
.hero-product-slider {
    width: 280px;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slider-track {
    display: flex;
    width: 300%; /* 3 slides * 100% width each */
    height: 100%;
    animation: slideProducts 15s infinite ease-in-out;
}

.slide {
    width: 33.33%; /* Each slide takes up a third of the track */
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Keyframes for the sliding animation */
@keyframes slideProducts {
    0% { transform: translateX(0); } /* Start at the first slide */
    25% { transform: translateX(0); } /* Stay for 5 seconds */

    33.33% { transform: translateX(-33.33%); } /* Slide to the second slide */
    58.33% { transform: translateX(-33.33%); } /* Stay for 5 seconds */

    66.66% { transform: translateX(-66.66%); } /* Slide to the third slide */
    91.66% { transform: translateX(-66.66%); } /* Stay for 5 seconds */

    100% { transform: translateX(0); } /* Slide back to the first slide */
}

/* Adjustments for a smooth transition with your existing hero content */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-product-slider {
        margin-top: 30px;
        width: 100%;
        height: 250px;
    }
    .slide img {
        height: 250px;
        width: auto;
    }
}




/* MOBILE RESPONSIVE FIXES - Add these styles to your existing CSS */

/* Enhanced Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* Fix header layout issues */
    .header-content {
        justify-content: space-between;
        gap: 0;
        height: 70px;
        position: relative;
    }
    
    .logo img {
        height: 50px;
    }
    
    /* Improve mobile navigation */
    .nav-right-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1002;
        transform: none;
    }
    
    .nav-right-wrapper.active {
        right: 0;
        transform: translateX(0);
    }
    
    /* Add backdrop when menu is open */
    .nav-right-wrapper.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* Fix hero section mobile layout completely */
    .hero-section {
        height: 100px;
        min-height: 380px;
        margin-bottom: 0;
        overflow: hidden;
        position: relative;
    }

    .hero-bg {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .hero-bg img {
        display: none; /* Hide the desktop background image */
    }
    
    .hero-bg {
        background-image: url('mobileherobg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .hero-wave {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;   
        /* background-color: #ffc107; */
        border-radius: 100% 100% 0 0;
        transform: scaleX(1.5);
        z-index: 1;
    }
    
    .hero-content {
        height: 100%;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 30px 15px 0;
        position: relative;
    }
    
    .hero-text {
        max-width: 60%;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        z-index: 3;
        margin-bottom: 10px;
        text-align: left;
        padding: 20px 0 15px;
    }
    
    .hero-text h1 {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 3px;
        color: #fff;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
        font-weight: 700;
    }
    
    .hero-text p {
        font-size: 0.75rem;
        max-width: 100%;
        margin-bottom: 12px;
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    }
    
    .btn-learn-more {
        position: static;
        transform: none;
        padding: 6px 12px;
        font-size: 0.75rem;
        margin-top: 0;
        background-color: #ffc107;
        color: #000;
        font-weight: 600;
        border-radius: 50px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    
    /* Fix hero product slider positioning */
    .hero-product-slider {
        width: 100px;
        height: 120px;
        position: absolute;
        right: 25px;
        top: 35%;
        transform: translateY(-50%);
        z-index: 2;
        opacity: 0.85;
    }
    
    /* Remove the yellow overlay that was causing issues */
    .hero-section::after {
        display: none;
    }
    
    /* Fix product grid layout */
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding-top: 0;
    }
    
    /* Improve product card sizing on mobile */
    .flip-container {
        aspect-ratio: 1 / 1;
        min-height: 280px;
    }
    
    .front, .back {
        border-radius: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    }
    
    .card-image {
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
    
    .card-image img {
        border-radius: 30px;
    }
    
    /* Fix section heading spacing */
    .section-heading {
        /* margin-top: -20px; */
        margin-bottom: -20px;
        font-size: 2.2rem;
    }
    
    /* Fix products section padding */
    .products-section {
        margin-top: -80px;
        padding: 60px 0;
    }
    
    /* Fix about us section mobile layout */
    .about-us-container {
        flex-direction: column;
        text-align: left;
        gap: 30px;
    }
    
    .about-us-text h2 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .about-us-image {
        max-width: 100%;
        order: -1;
    }
    
    /* Fix journey section mobile layout */
    .journey-section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    /* Fix footer grid on mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }
    
    .footer-item {
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    /* Further reduce product card size for very small screens */
    .flip-container {
        min-height: 250px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .card-info {
        padding: 8px 12px 12px 12px;
    }
    
    .card-info h3 {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    
    .card-info .info-button {
        padding: 6px 12px;
        font-size: 0.75em;
    }
    
    .hero-text p {
        font-size: -1rem;
        
    }
    
    .hero-product-slider {
        width: 150px;
        height: 200px;
        right: 5px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .flip-container {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .about-us-text h2 {
        font-size: 2rem;
    }
    
    .journey-section h2 {
        font-size: 2rem;
    }
    
    .journey-icon {
        width: 80px;
        height: 80px;
    }
    
    .journey-icon i {
        font-size: 2rem;
    }
}

/* Hide dots completely on all devices */
.product-grid-dots {
    display: none !important;
}

/* Fix mobile menu overlay */
.nav-right-wrapper.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Improve mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1003;
    background: none;
    border: none;
    position: relative;
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on mobile */
    user-select: none; /* Prevent text selection */
    outline: none; /* Remove outline */
}

/* Animation styles are defined in the hamburger icon section above */

.mobile-menu-toggle:hover {
    color: #000;
}

.mobile-menu-toggle:focus {
    outline: none;
}

/* Show mobile toggle only on mobile screens */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-right-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 30px 30px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        visibility: hidden; /* Hide by default */
        opacity: 0; /* Fully transparent by default */
        pointer-events: none; /* Prevent interaction when hidden */
        transform: translateX(20px); /* Start slightly offset */
        /* Prevent scroll position changes */
        overscroll-behavior: contain;
    }
    
    /* Removed dark backdrop */
    .nav-right-wrapper::before {
        display: none;
    }
    
    .nav-right-wrapper.active {
        right: 0;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0); /* Reset the transform */
    }
    
    /* Removed active backdrop */
    .nav-right-wrapper.active::before {
        display: none;
    }
    
    .main-nav {
        width: 100%;
    }
    
    /* Remove the pseudo-elements as we now have actual elements */
    .main-nav::before,
    .main-nav::after {
        display: none;
    }
}

/* Hide mobile logo container on desktop by default */
.mobile-logo-container {
    display: none;
}

/* Fix navigation menu items on mobile */
@media (max-width: 768px) {
    /* Show and style mobile logo container on mobile only */
    .mobile-logo-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        margin-top: -30px; /* Pull it up to reduce space at the top */
    }
    
    .nav-right-wrapper.active .mobile-logo-container {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-logo {
        width: auto;
        height: 70px;
        object-fit: contain;
        margin-bottom: 5px;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .nav-right-wrapper.active .mobile-logo {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-company-name {
        font-weight: 700;
        font-size: 1.4em;
        color: #333;
        text-align: center;
        letter-spacing: 0.5px;
        margin-top: 0;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: 0.1s;
    }
    
    .nav-right-wrapper.active .mobile-company-name {
        opacity: 1;
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        padding: 0 30px;
        margin-top: 0; /* Ensure no extra space above menu items */
        position: relative; /* Position relative to work with z-index */
        z-index: 1; /* Lower z-index than the logo and text */
        clear: both; /* Ensure it starts below the logo container */
    }
    
    /* Animation for menu items */
    .main-nav ul li {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0.1s;
    }
    
    .main-nav ul li:nth-child(2) {
        transition-delay: 0.2s;
    }
    
    .main-nav ul li:nth-child(3) {
        transition-delay: 0.3s;
    }
    
    .main-nav ul li:nth-child(4) {
        transition-delay: 0.4s;
    }
    
    .nav-right-wrapper.active .main-nav ul li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .main-nav ul li a {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        display: block;
        border-bottom: 1px solid #eee;
        -webkit-tap-highlight-color: transparent; /* Remove blue highlight on mobile */
        user-select: none; /* Prevent text selection */
        outline: none; /* Remove outline */
    }
    
    .main-nav ul li a:focus {
        outline: none;
    }
    
    .main-nav ul li:last-child a {
        border-bottom: none;
    }
}

/* Ensure images are properly responsive */
@media (max-width: 768px) {
    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Fix slider animation on mobile */
@media (max-width: 768px) {
    .slider-track {
        width: 300%;
    }
    
    .slide {
        width: 33.33%;
    }
    
    .slide img {
        max-width: 90%;
        height: auto;
        max-height: 90%;
        object-fit: contain;
    }
}

/* Ensure proper touch targets on mobile */
@media (max-width: 768px) {
    .flip-button,
    .btn-call {
        min-height: 44px;
        font-size: 1rem;
        padding: 9px 22px;
    
    }
    .btn-cancel {
        min-height: 44px;
        font-size: 1rem;
        padding: 9px 18px;
    }
    
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
        display: block;
    }
}

/* Add smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Remove blue highlight on mobile devices */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Remove blue highlight for all interactive elements */
a, button, .flip-button, .btn, .mobile-menu-toggle {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
}

a:focus, button:focus, .flip-button:focus, .btn:focus, .mobile-menu-toggle:focus {
    outline: none;
}

/* Prevent body scrolling when mobile menu is open */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Fix any z-index issues */
.main-header {
    z-index: 1000;
}

.nav-right-wrapper {
    z-index: 1002;
}

.mobile-menu-toggle {
    z-index: 1003;
}