/* --------------------------------------------------
   Custom CSS for Apex Herbex - Herbal Aesthetic 🌿
   -------------------------------------------------- */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root colors for easy maintenance */
:root {
    --herbal-green: #059669;         /* Main brand green */
    --dark-green: #0b2e13;           /* Footer / Headers */
    --light-mint: #e6f4ea;           /* Background accent */
    --text-primary: #333;
    --soft-cream: #fef9f4;           /* Content Bg */
    --brown-earth: #5d4037;          /* Accents */
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: white;
}

html {
    scroll-behavior: smooth;
}

/* Section Top Padding */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-mint) 0%, #d2f1d0 100%);
    min-height: 100vh;
    padding-top: 80px;
}

.hero-content h1 {
    line-height: 1.2;
}

.hero-image .blur-effect {
    width: 300px;
    height: 300px;
    filter: blur(100px);
    z-index: -1;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #6b7280 !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--herbal-green) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--herbal-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: var(--herbal-green);
    border: none;
    padding: 10px 24px;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.2);
}

.btn-success:hover {
    background-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.35);
}

.btn-outline-success {
    color: var(--herbal-green);
    border-color: var(--herbal-green);
}

.btn-outline-success:hover {
    background-color: var(--herbal-green);
    color: white;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
}

.testimonial-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.testimonial-card .card-body {
    padding: 2rem;
}

/* Hover Utility */
.hover-success {
    transition: color 0.3s ease;
}

.hover-success:hover {
    color: var(--herbal-green) !important;
}

/* Process Icons */
.process-icon {
    transition: all 0.3s ease;
    border-radius: 50%;
}

.process-icon:hover {
    background-color: rgba(5, 150, 105, 0.1) !important;
    transform: scale(1.05);
}

/* Contact Form */
.form-control:focus,
.form-select:focus {
    border-color: var(--herbal-green);
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
}

.form-floating > .form-control:focus ~ label {
    color: var(--herbal-green);
}

/* Footer */
footer {
    background-color: var(--dark-green);
    color: white;
}

footer h5 {
    color: white;
}

footer p,
footer span,
footer li,
footer .text-muted {
    color: #ddd !important;
}

footer a {
    color: #ccc;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--herbal-green);
    text-decoration: underline;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Footer Custom Classes */
footer .custom-footer-bg {
    background-color: var(--dark-green);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--herbal-green);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes floatUp {
    0% { transform: translateY(10px); opacity: 0.6; }
    100% { transform: translateY(0); opacity: 1; }
}
.animate-float-up {
    animation: floatUp 1s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }
}

/* Images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Shadow Utility */
.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-herb {
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.2);
}

/* Grid Utility */
.product-grid {
    gap: 2rem;
}

/* About Section */
.about-stats {
    background: linear-gradient(135deg, var(--light-mint) 0%, #ecfdf5 100%);
}
.testimonial-card {
    transition: transform 0.3s ease;
    background-color: #fff;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.brand-name {
    font-family: 'Playfair Display', serif; /* Organic looking */
    font-weight: 600;
    font-size: 1.75rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .about-stats {
        background: linear-gradient(135deg, var(--light-mint) 0%, #ecfdf5 100%);
    }
}

/* 🌿 Certificate Styling */
.certificate-img {
    max-height: 100px;
    width: auto;
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .certificate-img:hover {
    transform: scale(1.05);
    border-color: #2e7d32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
  }
 /* 🌿 Premium Herbal Navbar */
.herbal-navbar {
    background-color: #ffffffe6; /* White glass-like */
    backdrop-filter: blur(8px);
    transition: background-color 0.4s ease, box-shadow 0.3s ease;
    padding: 0.75rem 0;
  }
  
  .herbal-navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 80, 0, 0.1);
  }
  
  /* Brand Name */
  .herbal-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2e7d32;
    letter-spacing: 1px;
    transition: color 0.3s ease;
  }
  
  /* Nav Links */
  .herbal-link {
    font-weight: 600;
    color: #2c5f2d !important;
    letter-spacing: 0.3px;
    position: relative;
    padding: 0.5rem 0;
  }
  
  .herbal-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: #2e7d32;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
  }
  
  .herbal-link:hover::after,
  .herbal-link.active::after {
    transform: scaleX(1);
  }
  
  /* Button (desktop only) */
  .btn-success {
    background-color: #2e7d32;
    border: none;
    font-weight: 600;
  }
  
  .btn-success:hover {
    background-color: #1b5e20;
  }     
  .hero-float-img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    background: transparent;
    border: none !important;
    
    transition: transform 0.4s ease, opacity 0.4s ease;
    animation: floatUpDown 5s ease-in-out infinite alternate;
  }
  
  /* Simple Floating Animation */
  @keyframes floatUpDown {
    0%   { transform: translateY(0px); opacity: 1; }
    100% { transform: translateY(-8px); opacity: 1; }
  }
  .hero-float-img:hover {
    transform: scale(1.04) translateY(-10px);
  }