/* Base Variables */
:root {
    --primary-color: #2e8b57; /* Leaf Green */
    --primary-light: #54b47a;
    --dark-green: #1a4a2e; /* Deep Green */
    --cream: #f9f6f0;
    --white: #ffffff;
    --earth-brown: #8b5a2b;
    --text-color: #333333;
    
    /* Theme Variables for Flexibility */
    --theme-light-bg: var(--cream);
    --theme-light-text: var(--dark-green);
    --theme-dark-bg: var(--dark-green);
    --theme-dark-text: var(--white);
}

/* Global Reset & Typography */
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.text-dark-green { color: var(--dark-green) !important; }
.text-cream { color: var(--cream) !important; }
.bg-cream { background-color: var(--cream) !important; }
.bg-dark-green { background-color: var(--dark-green) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

/* Flexible Theme Classes */
.bg-theme-light { 
    background-color: var(--theme-light-bg) !important; 
    color: var(--theme-light-text);
}
.bg-theme-dark { 
    background-color: var(--theme-dark-bg) !important; 
    color: var(--theme-dark-text);
}

.text-theme-light, .text-theme-light h1, .text-theme-light h2, .text-theme-light h3, .text-theme-light h4, .text-theme-light h5, .text-theme-light h6 {
    color: var(--theme-light-text) !important;
}
.text-theme-light .text-muted {
    color: #6c757d !important;
}

.text-theme-dark, .text-theme-dark h1, .text-theme-dark h2, .text-theme-dark h3, .text-theme-dark h4, .text-theme-dark h5, .text-theme-dark h6 {
    color: var(--theme-dark-text) !important;
}
.text-theme-dark .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Ensure utility colors override theme colors */
.text-theme-dark .text-dark-green, .text-theme-light .text-dark-green {
    color: var(--dark-green) !important;
}
.text-theme-dark .text-primary, .text-theme-light .text-primary {
    color: var(--primary-color) !important;
}

/* Product Card Animation */
.product-img-wrapper {
    overflow: hidden;
}
.product-img-wrapper img {
    transition: transform 0.5s ease;
}
.card:hover .product-img-wrapper img {
    transform: scale(1.1);
}
.floating-img {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pulse-text {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.section-padding {
    padding: 100px 0;
}
.tracking-wider { letter-spacing: 2px; }
.transition-all { transition: all 0.3s ease; }
.max-w-700 { max-width: 700px; }

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cream);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* Navigation */
.custom-nav {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}
.custom-nav.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.custom-nav .navbar-brand {
    color: var(--white) !important;
}
.custom-nav .navbar-toggler {
    color: var(--white);
}
.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 15px !important;
}
.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 30px);
}

/* Buttons */
.custom-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.custom-btn:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 139, 87, 0.3);
}

.custom-btn-outline {
    border-color: var(--dark-green);
    color: var(--dark-green);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.custom-btn-outline:hover {
    background-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 74, 46, 0.9) 0%, rgba(26, 74, 46, 0.4) 100%);
    z-index: -1;
}
.hero-content {
    margin-top: 80px;
}

/* Features */
.feature-card:hover {
    transform: translateY(-10px);
}
.feature-card:hover .icon-wrapper {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    transition: all 0.3s ease;
}

/* Floating Elements */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    z-index: 99;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--dark-green) !important;
}

/* Footer */
.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background-color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Gallery Styles */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.gallery-img {
    width: 100%;
    transition: transform 0.6s ease;
}
.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 74, 46, 0.95) 0%, rgba(26, 74, 46, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-decoration: none;
    z-index: 10;
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}
.gallery-zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    background: rgba(255,255,255,0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    transition: all 0.4s ease 0.1s;
    font-size: 1.2rem;
}
.gallery-card:hover .gallery-zoom-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.gallery-zoom-icon:hover {
    background: var(--primary-color);
}
.gallery-content {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}
.gallery-card:hover .gallery-content {
    transform: translateY(0);
    opacity: 1;
}
.gallery-cat-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-light);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}
.gallery-content p {
    color: rgba(255, 255, 255, 0.8) !important;
}
