/* =========================================
   MIHIKATHA LANDSCAPING - NEXT LEVEL PROFESSIONAL
   Design: Clean, Corporate, Trustworthy, Modern
   Colors: Deep Forest Green, Crisp White, Soft Green Accents
   Typography: Playfair Display (Headings) + Inter (Body)
   ========================================= */

/* =========================================
   1. CSS VARIABLES - PROFESSIONAL GREEN PALETTE
   ========================================= */
:root {
    --primary: #1B5E20;        /* Deep Professional Forest Green */
    --primary-light: #2E7D32;  /* Standard Brand Green */
    --accent: #4CAF50;         /* Vibrant Green for highlights */
    --accent-soft: #81C784;    /* Soft Green for subtle accents */
    --bg-light: #F1F8E9;       /* Very subtle green-white background */
    --bg-offwhite: #FAFBFA;    /* Crisp off-white */
    --white: #FFFFFF;
    
    --text-primary: #1A2E23;   /* Very dark green-black for readability */
    --text-secondary: #4A5D4E; /* Muted green-gray for secondary text */
    --text-muted: #7A8A7E;     /* Light gray-green */
    
    --shadow-sm: 0 2px 8px rgba(27, 94, 32, 0.06);
    --shadow-md: 0 8px 24px rgba(27, 94, 32, 0.1);
    --shadow-lg: 0 16px 48px rgba(27, 94, 32, 0.12);
    --shadow-glow: 0 8px 30px rgba(76, 175, 80, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Premium easing for natural, smooth motion */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --gradient-green: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    --gradient-light: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
}

/* =========================================
   2. BASE RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--gradient-green); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* =========================================
   3. PRELOADER
   ========================================= */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); z-index: 9999;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    visibility: visible; opacity: 1; transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }

.loader {
    width: 50px; height: 50px;
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}
.loader-text {
    color: var(--primary);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600; font-size: 1.1rem; letter-spacing: 4px; text-transform: uppercase;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   4. HEADER - CLEAN & PROFESSIONAL
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(27, 94, 32, 0.08);
}
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1300px; margin: auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 30px;
}

.logo img {
    height: 85px; width: auto; transition: var(--transition);
}
.logo:hover img { transform: scale(1.03); }

.nav-links { display: flex; gap: 40px; align-items: center; }

.nav-links a {
    font-weight: 500; color: var(--text-secondary);
    position: relative; padding: 8px 0; font-size: 0.9rem;
    letter-spacing: 0.8px; text-transform: uppercase;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.hamburger {
    display: none; cursor: pointer; font-size: 24px;
    color: var(--primary); background: var(--bg-light);
    border: 1px solid rgba(27, 94, 32, 0.1);
    width: 45px; height: 45px; border-radius: 50%;
    align-items: center; justify-content: center; transition: var(--transition);
    z-index: 1001;
}
.hamburger:hover { background: var(--primary); color: var(--white); transform: rotate(90deg); }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    height: 100vh; min-height: 700px;
    background-size: cover; background-position: center;
    background-attachment: fixed;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.85) 0%, rgba(46, 125, 50, 0.7) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 30px; }

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem; margin-bottom: 20px; font-weight: 700;
    letter-spacing: 1px; line-height: 1.15;
    animation: fadeInUp 1s ease forwards; opacity: 0;
}
.hero h1 span {
    display: block; font-size: 1.1rem; letter-spacing: 6px;
    text-transform: uppercase; margin-top: 15px;
    color: var(--accent-soft); font-weight: 400; font-family: 'Inter', sans-serif;
}
.hero p {
    font-size: 1.15rem; margin-bottom: 35px;
    animation: fadeInUp 1s ease 0.2s forwards; opacity: 0;
    font-weight: 300; color: rgba(255, 255, 255, 0.95); max-width: 700px; margin-left: auto; margin-right: auto;
}
.hero .btn { animation: fadeInUp 1s ease 0.4s forwards; opacity: 0; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   6. BUTTONS (WITH PREMIUM SHINE EFFECT)
   ========================================= */
.btn {
    display: inline-block; padding: 15px 40px;
    background: var(--gradient-green); color: var(--white);
    border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.85rem; transition: var(--transition);
    border: none; cursor: pointer; font-family: 'Inter', sans-serif;
    letter-spacing: 1.5px; text-transform: uppercase;
    box-shadow: var(--shadow-md);
    position: relative; overflow: hidden; z-index: 1;
}
/* Shine sweep effect on hover */
.btn::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s; z-index: -1;
}
.btn:hover::before { left: 100%; }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    background: var(--primary-light);
}
.btn-white {
    background: var(--white); color: var(--primary);
    border: 2px solid var(--white);
}
.btn-white:hover {
    background: transparent; color: var(--white);
}

/* =========================================
   7. SECTIONS & TYPOGRAPHY
   ========================================= */
.section { padding: 100px 30px; position: relative; }
.section-light { background: var(--bg-light); }
.container { max-width: 1300px; margin: auto; position: relative; }

.section-title {
    text-align: center; font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem; color: var(--primary); margin-bottom: 15px;
    font-weight: 700; letter-spacing: 0.5px;
}
.section-title::after {
    content: ''; display: block; width: 70px; height: 3px;
    background: var(--accent); margin: 20px auto 0; border-radius: 2px;
}
.section-subtitle {
    text-align: center; color: var(--text-secondary); margin-bottom: 60px;
    font-size: 1.05rem; max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.8;
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }

/* =========================================
   8. GRIDS & CARDS
   ========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 50px; align-items: center; }

.card {
    background: var(--white); padding: 40px 30px;
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    text-align: center; transition: var(--transition);
    border: 1px solid rgba(27, 94, 32, 0.08);
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-green); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent-soft); }

.card h3 {
    color: var(--primary); margin-bottom: 15px; font-size: 1.25rem;
    font-weight: 600; font-family: 'Playfair Display', serif;
}
.card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

.detail-card { text-align: left; border-left: 4px solid var(--accent); }
.detail-card:hover { border-left-color: var(--primary); }

/* =========================================
   9. STATS SECTION
   ========================================= */
.stats-section {
    background: var(--gradient-green); color: var(--white);
    padding: 80px 30px; position: relative; overflow: hidden;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px; max-width: 1100px; margin: auto; text-align: center; position: relative; z-index: 1;
}
.stat-item {
    padding: 30px 20px; background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15); transition: var(--transition);
}
.stat-item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.15); }
.stat-item h2 {
    font-family: 'Playfair Display', serif; font-size: 3.2rem;
    margin-bottom: 10px; color: var(--white); font-weight: 700;
}
.stat-item p {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px;
    opacity: 0.9; font-weight: 500;
}

/* =========================================
   10. PROCESS & VISION
   ========================================= */
.process-step {
    text-align: center; padding: 30px 20px; transition: var(--transition);
}
.step-number {
    width: 70px; height: 70px; background: var(--bg-light);
    color: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700; margin: 0 auto 20px;
    font-family: 'Playfair Display', serif; border: 2px solid var(--accent);
    transition: var(--transition);
}
.process-step:hover .step-number {
    background: var(--primary); color: var(--white); border-color: var(--primary);
    transform: scale(1.1);
}
.process-step h3 { color: var(--primary); margin-bottom: 12px; font-size: 1.15rem; font-weight: 600; }
.process-step p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

.vision-mission-box {
    background: var(--white); padding: 45px 35px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); border-left: 5px solid var(--accent);
    transition: var(--transition);
}
.vision-mission-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-left-color: var(--primary); }
.vision-mission-box h3 { color: var(--primary); font-size: 1.4rem; margin-bottom: 15px; font-weight: 600; font-family: 'Playfair Display', serif; }
.vision-mission-box h3 i { margin-right: 10px; color: var(--accent); }
.vision-mission-box p { font-style: italic; font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }

/* =========================================
   11. CTA & GALLERY
   ========================================= */
.cta-banner {
    background: var(--gradient-green); color: var(--white);
    text-align: center; padding: 90px 30px; position: relative; overflow: hidden;
}
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 15px; font-weight: 700; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 30px; max-width: 650px; margin-left: auto; margin-right: auto; opacity: 0.95; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.gallery-grid img {
    width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-md);
    transition: var(--transition); box-shadow: var(--shadow-sm); border: 2px solid var(--white);
}
.gallery-grid img:hover { transform: scale(1.03) translateY(-5px); box-shadow: var(--shadow-lg); }

/* =========================================
   12. CONTACT SECTION
   ========================================= */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 40px; }
.info-box {
    background: var(--white); padding: 35px 30px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transition: var(--transition); border-top: 3px solid var(--accent);
}
.info-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-top-color: var(--primary); }
.info-box h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.2rem; font-weight: 600; font-family: 'Playfair Display', serif; }
.info-box h3 i { margin-right: 10px; color: var(--accent); }
.info-box p, .info-box a { margin-bottom: 8px; display: block; color: var(--text-secondary); font-size: 0.95rem; }
.info-box a i { margin-right: 8px; color: var(--primary); }
.info-box a:hover { color: var(--primary); transform: translateX(4px); }

.hours-table { width: 100%; margin-top: 10px; }
.hours-table tr td { padding: 8px 0; border-bottom: 1px solid var(--bg-light); font-size: 0.9rem; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table tr td:last-child { text-align: right; font-weight: 600; color: var(--primary); }

.map-container {
    width: 100%; height: 450px; border-radius: var(--radius-md);
    overflow: hidden; margin-top: 40px; box-shadow: var(--shadow-md); border: 2px solid var(--white);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
    max-width: 650px; margin: 40px auto 0; background: var(--white);
    padding: 45px 40px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); border-top: 4px solid var(--accent);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); font-size: 0.85rem; letter-spacing: 0.5px; text-transform: uppercase; }
.form-group label i { margin-right: 8px; color: var(--accent); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 16px; border: 1.5px solid rgba(27, 94, 32, 0.15);
    border-radius: var(--radius-sm); font-size: 0.95rem; font-family: 'Inter', sans-serif;
    transition: var(--transition); background: var(--bg-offwhite);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15); background: var(--white);
}
.form-group textarea { height: 120px; resize: vertical; }

/* =========================================
   13. FOOTER
   ========================================= */
footer {
    background: #0D2818; /* Very dark green */
    color: var(--white); padding: 80px 30px 25px; position: relative;
}
footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient-green); }
.footer-grid { max-width: 1300px; margin: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h4 {
    margin-bottom: 20px; font-size: 1.15rem; color: var(--white);
    position: relative; display: inline-block; font-weight: 600; font-family: 'Playfair Display', serif;
}
.footer-col h4::after { content: ''; position: absolute; bottom: -8px; left: 0; width: 35px; height: 2px; background: var(--accent); }
.footer-col p, .footer-col a { color: rgba(255, 255, 255, 0.8); margin-bottom: 10px; display: block; transition: var(--transition); font-size: 0.9rem; }
.footer-col p i, .footer-col a i { margin-right: 8px; color: var(--accent); }
.footer-col a:hover { color: var(--accent); transform: translateX(5px); }

/* Social Icons */
.social-links { display: flex; gap: 12px; margin-top: 15px; flex-wrap: wrap; }
.social-links a {
    width: 42px; height: 42px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: #ffffff;
    font-size: 1.1rem; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.social-links a:hover { transform: translateY(-4px) scale(1.1); box-shadow: var(--shadow-md); }
.social-links a i { position: relative; z-index: 2; transition: var(--transition); }
.social-links a:hover i { transform: scale(1.2); }
.social-links .fb { background: #1877F2; }
.social-links .ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-links .tt { background: #000000; }
.social-links .tt i { color: #ffffff; text-shadow: 2px 2px 0 #25F4EE, -2px -2px 0 #FE2C55; }
.social-links .wa { background: #25D366; }
.social-links .em { background: #EA4335; }
.social-links .ph { background: #34A853; }

.copyright {
    text-align: center; margin-top: 50px; padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; letter-spacing: 0.5px;
}

/* =========================================
   14. CHATBOT - NEXT LEVEL SMOOTH ANIMATION
   ========================================= */
.chatbot-container { position: fixed; bottom: 25px; right: 25px; z-index: 9999; font-family: 'Inter', sans-serif; }
.chatbot-toggle {
    width: 60px; height: 60px; border-radius: 50%; background: var(--gradient-green);
    border: 3px solid var(--white); color: var(--white); font-size: 1.5rem;
    cursor: pointer; box-shadow: var(--shadow-lg); transition: var(--transition);
    position: relative; display: flex; align-items: center; justify-content: center;
}
.chatbot-toggle:hover { transform: scale(1.1); box-shadow: var(--shadow-glow); }
.chatbot-toggle::before {
    content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: var(--primary); animation: chatPulse 2s ease-in-out infinite; z-index: -1; opacity: 0.4;
}
@keyframes chatPulse { 0% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.4); opacity: 0; } 100% { transform: scale(1); opacity: 0.4; } }

.chatbot-badge {
    position: absolute; top: -4px; right: -4px; background: var(--accent);
    color: var(--white); width: 22px; height: 22px; border-radius: 50%;
    font-size: 0.75rem; display: flex; align-items: center; justify-content: center;
    font-weight: 700; box-shadow: var(--shadow-sm); animation: badgeBounce 1.5s ease-in-out infinite;
}
@keyframes badgeBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* FIXED: Replaced display:none with opacity/transform for buttery smooth animation */
.chatbot-window {
    position: absolute; bottom: 75px; right: 0; width: 360px; height: 540px;
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid rgba(27, 94, 32, 0.1);
    opacity: 0; visibility: hidden;
    transform: scale(0.9) translateY(20px);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* Prevents clicks when hidden */
}
.chatbot-window.active { 
    opacity: 1; visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.chatbot-header {
    background: var(--gradient-green); color: var(--white); padding: 18px;
    display: flex; justify-content: space-between; align-items: center; position: relative;
}
.chatbot-header::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--accent); }
.chatbot-header-content { display: flex; align-items: center; gap: 12px; }
.chatbot-logo { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--white); object-fit: cover; background: var(--white); }
.chatbot-header h4 { font-size: 1rem; margin: 0; font-weight: 600; font-family: 'Playfair Display', serif; }
.chatbot-header p { font-size: 0.75rem; margin: 0; opacity: 0.9; }
.chatbot-close {
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white); width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.chatbot-close:hover { background: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }

.chatbot-messages { flex: 1; overflow-y: auto; padding: 18px; background: var(--bg-light); }
.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 10px; }

.message { display: flex; margin-bottom: 15px; animation: messageFadeIn 0.3s ease; }
@keyframes messageFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.bot-message { justify-content: flex-start; }
.user-message { justify-content: flex-end; }

.message-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
    display: flex; align-items: center; justify-content: center; color: var(--white);
    font-size: 0.9rem; margin-right: 10px; flex-shrink: 0; border: 2px solid var(--accent);
}
.message-content {
    max-width: 75%; background: var(--white); padding: 12px 15px;
    border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid rgba(27, 94, 32, 0.08);
}
.user-message .message-content { background: var(--primary); color: var(--white); border: none; }
.message-content p { margin: 0; font-size: 0.9rem; line-height: 1.5; white-space: pre-line; }
.message-time { font-size: 0.7rem; opacity: 0.6; margin-top: 5px; display: block; }

.chatbot-quick-replies { padding: 12px 15px; background: var(--white); border-top: 1px solid rgba(27, 94, 32, 0.1); display: flex; gap: 8px; flex-wrap: wrap; }
.quick-reply {
    background: var(--bg-light); border: 1.5px solid var(--accent); color: var(--primary);
    padding: 7px 14px; border-radius: 20px; font-size: 0.8rem; cursor: pointer;
    transition: var(--transition); font-weight: 500; font-family: 'Inter', sans-serif;
}
.quick-reply:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-2px); }

.chatbot-input { padding: 15px; background: var(--white); border-top: 1px solid rgba(27, 94, 32, 0.1); display: flex; gap: 10px; }
.chatbot-input input {
    flex: 1; padding: 11px 15px; border: 1.5px solid rgba(27, 94, 32, 0.15);
    border-radius: 25px; font-size: 0.9rem; font-family: 'Inter', sans-serif;
    transition: var(--transition); background: var(--bg-offwhite);
}
.chatbot-input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15); background: var(--white); }
.chatbot-input button {
    width: 42px; height: 42px; border-radius: 50%; background: var(--primary);
    border: 2px solid var(--accent); color: var(--white); cursor: pointer;
    transition: var(--transition); display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.chatbot-input button:hover { background: var(--accent); color: var(--primary); transform: scale(1.1); }

/* =========================================
   15. RESPONSIVE DESIGN (UPGRADED MOBILE MENU)
   ========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .section-title { font-size: 2.3rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .logo img { height: 70px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    /* Premium Slide-in Drawer for Mobile */
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
        background: var(--white); flex-direction: column; align-items: flex-start;
        padding: 100px 30px 30px; gap: 0; box-shadow: var(--shadow-lg);
        border-left: 1px solid rgba(27, 94, 32, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex; z-index: 1000;
    }
    .nav-links.active { right: 0; }
    
    .nav-links a { 
        font-size: 1.1rem; width: 100%; padding: 15px 0; 
        border-bottom: 1px solid rgba(27, 94, 32, 0.05);
        opacity: 0; transform: translateX(20px); transition: all 0.3s ease;
    }
    /* Staggered link animation */
    .nav-links.active a { opacity: 1; transform: translateX(0); }
    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.3s; }

    .hero { height: 85vh; min-height: 550px; background-attachment: scroll; }
    .hero h1 { font-size: 2.2rem; }
    .hero h1 span { font-size: 0.9rem; letter-spacing: 3px; }
    .section { padding: 70px 20px; }
    .section-title { font-size: 1.9rem; }
    .stat-item h2 { font-size: 2.5rem; }
    .contact-form { padding: 30px 20px; }
    .chatbot-window { width: calc(100vw - 30px); height: calc(100vh - 140px); bottom: 70px; right: 0; }
    .chatbot-toggle { width: 55px; height: 55px; font-size: 1.3rem; }
}