:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #065f46;
    --accent: #f59e0b;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --bg-darker: #f1f5f9;
    --chat-gradient: linear-gradient(135deg, #10b981, #065f46);
}

/* AI Chatbot Widget Styles */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-toggle-btn {
    background: var(--chat-gradient);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle-btn:hover { transform: scale(1.1); }

.chat-label {
    position: absolute;
    right: 75px;
    background: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--secondary);
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.3s;
}

.chat-toggle-btn:hover .chat-label { opacity: 1; transform: translateX(0); }

.chat-window {
    position: absolute;
    bottom: 85px; right: 0;
    width: 360px; height: 520px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-window.hidden { transform: scale(0); opacity: 0; pointer-events: none; }

.chat-header {
    background: var(--secondary);
    color: white; padding: 18px 24px;
    display: flex; justify-content: space-between; align-items: center;
}

.bot-info { display: flex; align-items: center; gap: 15px; }

.bot-info img { border-radius: 50%; background: white; }

.chat-messages { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: #f8fafc; }

.message { max-width: 85%; padding: 12px 18px; border-radius: 18px; font-size: 0.95rem; }

.message.bot { align-self: flex-start; background: white; border-bottom-left-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

.message.user { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 4px; }

.chat-input-area { padding: 18px 20px; background: white; display: flex; gap: 12px; border-top: 1px solid #f1f5f9; }

.chat-input-area input { flex: 1; border: 1px solid #e2e8f0; padding: 12px 20px; border-radius: 30px; outline: none; }

.chat-input-area button { background: var(--primary); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; }

/* Pulse Animation */
.pulse { animation: pulse-green 2s infinite; }
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-image: linear-gradient(rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.8)), url('hero-bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.brand-logo {
    height: 45px;
    width: auto;
    transition: 0.3s;
}

.footer-logo {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(6, 95, 70, 0.2);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(6, 95, 70, 0.3);
}

#searchBtn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
}

#searchBtn:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--secondary);
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #064e3b;
    /* Deep Dark Green */
}

.hero-title span {
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #334155;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-hero-primary {
    background-color: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-hero-primary:hover {
    transform: scale(1.05);
    background-color: var(--primary-dark);
}

.btn-hero-secondary {
    background-color: var(--secondary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-hero-secondary:hover {
    transform: scale(1.05);
    background-color: var(--primary-dark);
}

/* Authentication Section */
.auth-section {
    padding: 100px 0;
    background-color: transparent;
}

.auth-wrapper {
    max-width: 500px;
    margin: 50px auto 0;
}

.auth-card {
    padding: 40px;
    text-align: center;
}

.auth-card h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.auth-switch {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
}

.hidden {
    display: none !important;
}

/* Admin Section */
.admin-section {
    padding: 100px 0;
    background-color: transparent;
}

.admin-portal {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.admin-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.admin-login-form {
    margin-top: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Dashboard Styles */
.admin-dashboard {
    margin-top: 40px;
    text-align: left;
    animation: fadeIn 0.5s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.tab-btn {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.admin-table th {
    background: var(--secondary);
    color: white;
    padding: 15px;
    text-align: left;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
}

.admin-portal h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

/* Advisory Section */
.advisory-section {
    padding: 100px 0;
    background-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Bar */
.search-bar-container {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

#cropSearch {
    width: 100%;
    padding: 15px 25px 15px 50px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    outline: none;
    box-shadow: var(--shadow);
}

#cropSearch:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.search-bar-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Crop Grid */
.crop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.crop-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    cursor: pointer;
}

.crop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.crop-img {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.crop-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    width: 100%;
    color: white;
    font-weight: 600;
}

.crop-info {
    padding: 25px;
    text-align: center;
}

.crop-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.crop-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.crop-stats-brief {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.stat-bubble {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.stat-bubble i {
    color: var(--primary);
}

.crop-card:hover .stat-bubble {
    background: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-card {
    background-color: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Soil Lab Section */
.soil-lab-section {
    padding: 100px 0;
    background-color: transparent;
}

.soil-lab-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .soil-lab-container {
        grid-template-columns: 1fr;
    }
}

.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.card-glass h3 {
    margin-bottom: 25px;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 700;
}

.input-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    transition: 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-analyze {
    width: 100%;
    background-color: var(--secondary);
    color: white;
    padding: 15px;
    border-radius: 15px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 30px;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 10px 20px rgba(6, 95, 70, 0.2);
}

.btn-analyze:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 95, 70, 0.3);
}

/* Results Content Styling */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.result-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-optimal {
    background-color: #dcfce7;
    color: #166534;
}

.status-deficient {
    background-color: #fee2e2;
    color: #991b1b;
}

.result-output-content h4 {
    color: var(--secondary);
    margin: 20px 0 10px;
}

.result-output-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rec-item {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.rec-item h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.rec-item span {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Save Actions */
.result-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.btn-save {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-save:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Saved History Section */
.saved-reports-section {
    margin-top: 60px;
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.history-header h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-clear-all {
    background: transparent;
    border: 1px solid #fee2e2;
    color: #ef4444;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-clear-all:hover {
    background: #fef2f2;
}

.reports-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.history-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    transition: 0.3s;
}

.history-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.history-card .date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.history-card .crop {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    display: block;
}

.history-card .parameters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.param-badge {
    background: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.history-card .btn-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.history-card .btn-remove:hover {
    color: #ef4444;
}

/* Weather & Alerts Section */
.weather-section {
    padding: 100px 0;
    background-color: transparent;
}

.weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 1100px) {
    .weather-grid {
        grid-template-columns: 1fr;
    }
}

.weather-display-card {
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
    color: white;
    padding: 40px;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.location-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.location-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.weather-icon-main {
    font-size: 3.5rem;
}

.temp-display {
    margin: 40px 0;
}

.temp-display h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
}

.temp-display p {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

.weather-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stat-item span {
    font-weight: 700;
}

.stat-item small {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* AI Recommendation Styles */
.ai-recommendation-card {
    border: 2px solid rgba(16, 185, 129, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ai-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.ai-header h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
}

.ai-recommendation-content {
    margin-bottom: 25px;
}

.ai-crop-badge {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.4rem;
    display: block;
    margin: 10px 0;
}

.ai-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-ai-glow {
    width: 100%;
    background: linear-gradient(90deg, #10b981, #065f46, #10b981);
    background-size: 200% auto;
    color: white;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-ai-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.ai-loading {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* WhatsApp Alert Form */
.alert-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.whatsapp-icon {
    font-size: 2.5rem;
    color: #25d366;
}

.alert-text {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.location-box {
    display: flex;
    gap: 10px;
}

.location-box input {
    flex: 1;
}

.btn-location {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 45px;
    height: 46px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.btn-location:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.alert-options {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-whatsapp {
    width: 100%;
    background-color: #25d366;
    color: white;
    padding: 15px;
    border-radius: 15px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 30px;
    max-width: 900px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.5s;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 35px;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-header-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .modal-header-info {
        flex-direction: column;
    }
}

.modal-img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
}

.modal-details {
    flex: 1;
}

.modal-details h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pill {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pill-soil {
    background-color: #fef3c7;
    color: #92400e;
}

.pill-temp {
    background-color: #dcfce7;
    color: #166534;
}

.pill-rain {
    background-color: #dbeafe;
    color: #1e40af;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item h4 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.detail-item p {
    font-weight: 600;
    color: var(--text-dark);
}

.full-description h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

/* About Section */
.about-section {
    padding: 120px 0;
    background-color: transparent;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

@media (max-width: 900px) {
    .about-flex {
        flex-direction: column;
        gap: 50px;
    }
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--primary);
    padding: 20px 30px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
}

.experience-badge .num {
    font-size: 2.2rem;
    font-weight: 800;
}

.experience-badge .txt {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.about-text {
    flex: 1.2;
}

.about-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #ecfdf5;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    margin-bottom: 20px;
}

.about-text h3 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--secondary);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-list-premium {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 600px) {
    .feature-list-premium {
        grid-template-columns: 1fr;
    }
}

.f-item {
    display: flex;
    gap: 15px;
}

.f-icon {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: 0.3s;
}

.f-item:hover .f-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.f-text h4 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.f-text p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Market Section */
.market-section {
    padding: 100px 0;
    background-color: transparent;
}

.market-container {
    background: white;
    padding: 0;
    overflow: hidden;
}

.market-controls {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .market-controls {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

.market-filters {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex: 1;
}

@media (max-width: 900px) {
    .market-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-group select {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
    transition: 0.3s;
}

.filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filter-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#filterMarketBtn {
    height: 46px;
    padding: 0 25px;
}

/* Footer Control */

.market-table-container {
    overflow-x: auto;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.market-table th {
    background-color: #f8fafc;
    padding: 18px 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.market-table td {
    padding: 20px 30px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
}

.trend-badge {
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
}

.trend-up {
    background-color: #dcfce7;
    color: #166534;
}

.trend-down {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Schemes Section */
.schemes-section {
    padding: 100px 0;
    background-color: transparent;
}

.schemes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.scheme-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 35px;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scheme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.scheme-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.scheme-card h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 700;
}

.scheme-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.scheme-benefits {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}

.benefit-tag {
    display: inline-block;
    background: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    border: 1px solid #e2e8f0;
    margin-right: 8px;
    margin-bottom: 8px;
}

.btn-scheme {
    width: fit-content;
    background: transparent;
    color: var(--primary-dark);
    font-weight: 700;
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 12px;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-scheme:hover {
    background: var(--primary);
    color: white;
}

/* Footer Control */
.main-footer {
    padding: 80px 0 30px;
    background-color: #0d1117;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-info .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-info p {
    color: #94a3b8;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-newsletter form {
    display: flex;
    gap: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #475569;
}

/* Pest Management Section */
.pest-mgmt-section {
    padding: 100px 0;
    background-color: transparent;
}

.pest-mgmt-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .pest-mgmt-container {
        grid-template-columns: 1fr;
    }
}

.scanner-card {
    text-align: center;
    padding: 40px;
    border: 2px dashed #cbd5e1;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.icon-upload {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
}

.image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

.image-wrapper img {
    width: 100%;
    display: block;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: scanAnimation 2s linear infinite;
    display: none;
}

@keyframes scanAnimation {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

.btn-analyze-pest {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Pest Results */
.result-header-pest {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    color: #166534;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-header-pest h2 {
    color: var(--secondary);
    font-size: 1.8rem;
}

.pest-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.pest-info-box h4 {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pest-info-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.severity-badge {
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 700;
    background: #fee2e2;
    color: #991b1b;
}

.pest-solution-box {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    border-left: 6px solid var(--primary);
}

.pest-solution-box h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.pest-solution-box ul {
    list-style: none;
}

.pest-solution-box ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pest-solution-box ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Drone Service Section */
.drone-service-section {
    padding: 100px 0;
    background-color: transparent;
}

.drone-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .drone-container {
        grid-template-columns: 1fr;
    }
}

.drone-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.drone-benefit {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.drone-benefit i {
    width: 50px;
    height: 50px;
    background: #ecfdf5;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.drone-benefit h4 {
    color: var(--secondary);
    margin-bottom: 5px;
}

.drone-benefit p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.booking-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px dashed #cbd5e1;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--secondary);
}

#estCost {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

/* Animations */
.reveal-card {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: revealCard 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes revealCard {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }/* Government Schemes Styles */
.schemes-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.schemes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.scheme-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scheme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
    border-color: var(--primary-light);
}

.scheme-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transition: 0.4s;
    transform-origin: left;
}

.scheme-card:hover::before {
    transform: scaleX(1);
}

.scheme-icon {
    width: 60px;
    height: 60px;
    background: #ecfdf5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.scheme-card h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 15px;
    font-weight: 800;
}

.scheme-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.scheme-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.benefit-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.btn-scheme {
    background: var(--secondary);
    color: white;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.btn-scheme:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Auth state handling */
.hidden {
    display: none !important;
}
}