/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-green: #22c55e;
    --primary-green-dark: #16a34a;
    --primary-green-light: #86efac;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ==========================
   PRELOADER STYLES
========================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: fadeInScale 0.8s ease-out;
}

.preloader-logo-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    animation: logoFloat 3s ease-in-out infinite;
}

.kasai-logo {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(34, 197, 94, 0.3));
}

.logo-border {
    animation: borderPulse 2s ease-in-out infinite;
}

.logo-k {
    animation: kSlide 1.5s ease-out;
    transform-origin: center;
}

.preloader-leaf {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
    animation: leafPulse 2s ease-in-out infinite;
}

.preloader-leaf i {
    font-size: 3.5rem;
    color: white;
    animation: leafRotate 3s ease-in-out infinite;
}

/* Preloader Logo Image */
.preloader-logo {
    width: 100px;
    height: 125px;
    object-fit: contain;

}

/* Alternative: Remove background circle for logo */
.preloader-leaf.logo-mode {
    background: transparent;
    box-shadow: none;
    width: auto;
    height: auto;
}

.preloader-leaf.logo-mode .preloader-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 10px 30px rgba(34, 197, 94, 0.3));
}

.preloader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 10px;
    animation: textGlow 2s ease-in-out infinite;
}

.preloader-tagline {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out;
}

/* Progress Bar */
.preloader-progress {
    width: 100px;
    height: 4px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 10px;
    animation: progressAnimation 1s ease-in-out infinite;
}

/* Loading Dots */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Preloader Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes borderPulse {
    0%, 100% {
        stroke-width: 8;
        opacity: 1;
    }
    50% {
        stroke-width: 10;
        opacity: 0.8;
    }
}

@keyframes kSlide {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes leafPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 15px 50px rgba(34, 197, 94, 0.5);
    }
}

@keyframes leafRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes progressAnimation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lora', serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link.active {
    color: var(--primary-green) !important;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section .carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-section .carousel-item {
    height: 100vh;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(2px);
}

/* Hero Content Animation */
.hero-blur {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(15px);
    transition: 
        opacity 1.2s ease-out,
        transform 1.2s ease-out,
        filter 1.2s ease-out;
}

.hero-blur.appear {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-icon i {
    font-size: 5rem;
    animation: float 3s ease-in-out infinite;
}

/* Buttons */
.btn-success {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), #15803d);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-success {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

/* Products Section */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    overflow: hidden;
    height: 100%;
    background: white;
    border-radius: 15px;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.product-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.15) rotate(2deg);
}

/* .product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
} */

.product-price {
    color: var(--primary-green);
    font-size: 1.85rem;
    font-weight: 700;
}

.product-price-unit {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

.product-card .card-text {
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) transparent;
    padding-right: 5px;
}

/* Custom scrollbar for Webkit browsers */
.product-card .card-text::-webkit-scrollbar {
    width: 4px;
}

.product-card .card-text::-webkit-scrollbar-track {
    background: transparent;
}

.product-card .card-text::-webkit-scrollbar-thumb {
    background-color: var(--primary-green);
    border-radius: 20px;
}


/* Why Choose Us Section */
.why-choose-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.why-choose-card:hover::before {
    opacity: 0.1;
}

.why-choose-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.why-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.why-choose-card:hover .why-icon {
    transform: scale(1.1) rotate(360deg);
}

/* About Section */
.about-image {
    transition: all 0.4s ease;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-green);
    border-radius: 1rem;
    z-index: -1;
    transition: all 0.4s ease;
}

.about-image:hover::after {
    top: 30px;
    right: 30px;
}

.about-image:hover {
    transform: translateY(-10px);
}

/* Slide Animations */
.slide-left, 
.slide-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left {
    transform: translateX(-60px);
}

.slide-right {
    transform: translateX(60px);
}

.slide-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Testimonials */
.testimonial-card {
    perspective: 1200px;
    cursor: pointer;
    height: 380px;
}

.testimonial-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card.flip .testimonial-inner {
    transform: rotateY(180deg);
}

@media (hover: hover) {
    .testimonial-card:hover .testimonial-inner {
        transform: rotateY(180deg);
    }
}

.testimonial-front,
.testimonial-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-front {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-green-light);
    margin: 0 auto;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.testimonial-author {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-role {
    margin: 0;
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
      /* flex: 2;   */
      display: flex;           /* makes content align inside */
  flex-direction: column;
  justify-content: center;
  height: 100%;            /* forces equal height */
  text-align: center;

}

.contact-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.social-icons a {
    display: inline-block;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    transform: scale(1.2) translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.show {
    display: flex;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Smooth Scrolling Offset */
section {
    scroll-margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .decorative-leaf {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .hero-icon i {
        font-size: 3.5rem;
    }
    
    .display-1 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-top-btn {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .decorative-leaf {
        display: none;
    }
    
    .product-img-wrapper {
        height: 220px;
    }
    
    .why-choose-card {
        padding: 2rem;
    }
    
    .why-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
        .navbar-nav {
        text-align: center;
        gap:5px;
    }
    #langToggle{
            margin-left: 0px !important;
    }

    .nav-link.active::after {
    width: 24%;
    }
}

@media (max-width: 576px) {
    .navbar-brand span {
        font-size: 1.25rem;
    }
    
    .hero-icon i {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .stats-section h3 {
        font-size: 1.5rem;
    }
    .lb{
        display: inline-block;
    }

}